1*9880d681SAndroid Build Coastguard Worker; We actually need to use -filetype=obj in this test because if we output 2*9880d681SAndroid Build Coastguard Worker; assembly, the current code path will bypass the parser and just write the 3*9880d681SAndroid Build Coastguard Worker; raw text out to the Streamer. We need to actually parse the inlineasm to 4*9880d681SAndroid Build Coastguard Worker; demonstrate the bug. Going the asm->obj route does not show the issue. 5*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=aarch64 < %s -filetype=obj | llvm-objdump -arch=aarch64 -d - | FileCheck %s 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: foo: 8*9880d681SAndroid Build Coastguard Worker; CHECK: a0 79 95 d2 mov x0, #43981 9*9880d681SAndroid Build Coastguard Worker; CHECK: c0 03 5f d6 ret 10*9880d681SAndroid Build Coastguard Workerdefine i32 @foo() nounwind { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %0 = tail call i32 asm sideeffect "ldr $0,=0xabcd", "=r"() nounwind 13*9880d681SAndroid Build Coastguard Worker ret i32 %0 14*9880d681SAndroid Build Coastguard Worker} 15*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: bar: 16*9880d681SAndroid Build Coastguard Worker; CHECK: 40 00 00 58 ldr x0, #8 17*9880d681SAndroid Build Coastguard Worker; CHECK: c0 03 5f d6 ret 18*9880d681SAndroid Build Coastguard Worker; Make sure the constant pool entry comes after the return 19*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: $d.1: 20*9880d681SAndroid Build Coastguard Workerdefine i32 @bar() nounwind { 21*9880d681SAndroid Build Coastguard Workerentry: 22*9880d681SAndroid Build Coastguard Worker %0 = tail call i32 asm sideeffect "ldr $0,=0x10001", "=r"() nounwind 23*9880d681SAndroid Build Coastguard Worker ret i32 %0 24*9880d681SAndroid Build Coastguard Worker} 25