bolt/deps/llvm-18.1.8/llvm/test/CodeGen/X86/inline-asm-Ws-constraint-error.ll
2025-02-14 19:21:04 +01:00

14 lines
480 B
LLVM

; RUN: not llc -mtriple=x86_64 < %s 2>&1 | FileCheck %s
@a = external global [4 x i32], align 16
; CHECK-COUNT-2: error: invalid operand for inline asm constraint 'Ws'
; CHECK-NOT: error:
define void @test(i64 %i) {
entry:
%x = alloca i32, align 4
%ai = getelementptr inbounds [4 x i32], ptr @a, i64 0, i64 %i
call void asm sideeffect "", "^Ws,~{dirflag},~{fpsr},~{flags}"(ptr %x)
call void asm sideeffect "", "^Ws,~{dirflag},~{fpsr},~{flags}"(ptr %ai)
ret void
}