brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 9c3cb74 Raw
38 lines · plain
1; RUN: llc -mtriple=ppc32 < %s | FileCheck %s2; RUN: llc -mtriple=ppc64 < %s | FileCheck %s --check-prefix=PPC643 4; Test that %c works with immediates5; CHECK-LABEL: test_inlineasm_c_output_template06; CHECK: #TEST 427define dso_local i32 @test_inlineasm_c_output_template0() {8  tail call void asm sideeffect "#TEST ${0:c}", "i"(i32 42)9  ret i32 4210}11 12; Test that %c works with global address13; CHECK-LABEL: test_inlineasm_c_output_template1:14; CHECK: #TEST baz15@baz = internal global i32 0, align 416define dso_local i32 @test_inlineasm_c_output_template1() {17  tail call void asm sideeffect "#TEST ${0:c}", "i"(ptr nonnull @baz)18  ret i32 4319}20 21; Test that %n works with immediates22; CHECK-LABEL: test_inlineasm_c_output_template223; CHECK: #TEST -4224define dso_local i32 @test_inlineasm_c_output_template2() {25  tail call void asm sideeffect "#TEST ${0:n}", "i"(i32 42)26  ret i32 4227}28 29; Test that the machine specific %L works with memory operands.30; CHECK-LABEL: test_inlineasm_L_output_template31; CHECK: # 4(5)32; PPC64-LABEL: test_inlineasm_L_output_template33; PPC64: # 8(4)34define dso_local void @test_inlineasm_L_output_template(i64 %0, ptr %1) {35  tail call void asm sideeffect "# ${0:L}", "*m"(ptr elementtype(i64) %1)36  ret void37}38