llvm-project/llvm/test/CodeGen/X86/inline-asm-n-constraint.ll
Nick Desaulniers 35a364fa5c
[TargetLowering] fix index OOB (#67494)
I accidentally introduced this in

commit 330fa7d2a4e0 ("[TargetLowering] Deduplicate choosing InlineAsm
constraint between ISels (#67057)")

Fix forward.
2023-09-26 15:50:26 -07:00

18 lines
426 B
LLVM

; RUN: llc -mtriple=x86_64-unknown-unknown -no-integrated-as < %s 2>&1 | FileCheck %s
@x = global i32 0, align 4
define void @foo() {
; CHECK-LABEL: foo:
call void asm sideeffect "foo $0", "n"(i32 42) nounwind
; CHECK: #APP
; CHECK-NEXT: foo $42
; CHECK-NEXT: #NO_APP
call void asm "# $0", "in"(i32 1392848979)
; CHECK-NEXT: #APP
; CHECK-NEXT: # $1392848979
; CHECK-NEXT: #NO_APP
ret void
; CHECK-NEXT: retq
}