xref: /aosp_15_r20/external/llvm/test/Linker/inlineasm.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: echo > %t.ll
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.ll %s -S
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; ModuleID = 'bitfield-access-2.o'
5*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-n8:16:32"
6*9880d681SAndroid Build Coastguard Workertarget triple = "i386-apple-macosx10.6.8"
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; rdar://9776316 - type remapping needed for inline asm blobs.
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker%T = type { [18 x i32], [4 x i8*] }
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdefine void @f(%T* %x) nounwind ssp {
13*9880d681SAndroid Build Coastguard Workerentry:
14*9880d681SAndroid Build Coastguard Workercall void asm sideeffect "", "=*m"(%T* %x) nounwind
15*9880d681SAndroid Build Coastguard Workerunreachable
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18