xref: /llvm-project/llvm/test/CodeGen/X86/inline-asm-e-constraint.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: not llc -mtriple=x86_64-unknown-unknown -no-integrated-as < %s 2>&1 | FileCheck %s
2
3%struct.s = type { i32, i32 }
4
5@pr40890.s = internal global %struct.s zeroinitializer, align 4
6
7; CHECK: error: invalid operand for inline asm constraint 'e'
8; CHECK: error: invalid operand for inline asm constraint 'e'
9
10define void @pr40890() {
11entry:
12  ; This pointer cannot be used as an integer constant expression.
13  tail call void asm sideeffect "\0A#define GLOBAL_A abcd$0\0A", "e,~{dirflag},~{fpsr},~{flags}"(ptr @pr40890.s)
14  ; Floating-point is also not okay.
15  tail call void asm sideeffect "\0A#define PI abcd$0\0A", "e,~{dirflag},~{fpsr},~{flags}"(float 0x40091EB860000000)
16  ret void
17}
18