xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2009-02-12-InlineAsm-nieZ-constraints.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -no-integrated-as | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; ModuleID = 'shant.c'
4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
5*9880d681SAndroid Build Coastguard Workertarget triple = "i386-apple-darwin9.6"
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @f() nounwind {
8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f:
9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ret
10*9880d681SAndroid Build Coastguard Worker; CHECK: foo $-81920
11*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ret
12*9880d681SAndroid Build Coastguard Worker; CHECK: foo $-81920
13*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ret
14*9880d681SAndroid Build Coastguard Worker; CHECK: foo $-81920
15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ret
16*9880d681SAndroid Build Coastguard Worker; CHECK: foo $4294885376
17*9880d681SAndroid Build Coastguard Worker; CHECK: ret
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker	call void asm sideeffect "foo $0", "n,~{dirflag},~{fpsr},~{flags}"(i32 -81920) nounwind
20*9880d681SAndroid Build Coastguard Worker	call void asm sideeffect "foo $0", "i,~{dirflag},~{fpsr},~{flags}"(i32 -81920) nounwind
21*9880d681SAndroid Build Coastguard Worker	call void asm sideeffect "foo $0", "e,~{dirflag},~{fpsr},~{flags}"(i32 -81920) nounwind
22*9880d681SAndroid Build Coastguard Worker	call void asm sideeffect "foo $0", "Z,~{dirflag},~{fpsr},~{flags}"(i64 4294885376) nounwind
23*9880d681SAndroid Build Coastguard Worker	ret void
24*9880d681SAndroid Build Coastguard Worker}
25