Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
Test updates were performed using:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only the test updates where the test passed without
further modification (which is almost all of them, as the backend
is largely pointer-type agnostic).
2022-06-22 14:38:25 +02:00

18 lines
534 B
LLVM

; RUN: not llc -o /dev/null %s 2>&1 | FileCheck %s
target triple = "x86_64--"
@a = global i32 0, align 4
; CHECK: error: couldn't allocate input reg for constraint 'x'
define i32 @main() {
entry:
%0 = load i32, ptr @a, align 4
%cmp = icmp ne i32 %0, 0
%1 = call { i32, i32 } asm "", "={ax},={dx},x,~{dirflag},~{fpsr},~{flags}"(i1 %cmp)
%asmresult = extractvalue { i32, i32 } %1, 0
%asmresult1 = extractvalue { i32, i32 } %1, 1
store i32 %asmresult, ptr @a, align 4
store i32 %asmresult1, ptr @a, align 4
ret i32 0
}