diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/available-externally.ll | 81 | ||||
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/stubs.ll | 17 |
3 files changed, 13 insertions, 89 deletions
diff --git a/llvm/test/CodeGen/PowerPC/available-externally.ll b/llvm/test/CodeGen/PowerPC/available-externally.ll index 53c43599548..6169e3fba99 100644 --- a/llvm/test/CodeGen/PowerPC/available-externally.ll +++ b/llvm/test/CodeGen/PowerPC/available-externally.ll @@ -1,12 +1,12 @@ ; RUN: llc < %s -relocation-model=static | FileCheck %s -check-prefix=STATIC -; RUN: llc < %s -relocation-model=pic -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=PIC +; RUN: llc < %s -relocation-model=pic -mtriple=powerpc-apple-darwin9 | FileCheck %s -check-prefix=PIC ; RUN: llc < %s -relocation-model=pic -mtriple=powerpc-unknown-linux | FileCheck %s -check-prefix=PICELF -; RUN: llc < %s -relocation-model=pic -mtriple=powerpc64-apple-darwin8 | FileCheck %s -check-prefix=PIC64 -; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=DYNAMIC -; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=powerpc64-apple-darwin8 | FileCheck %s -check-prefix=DYNAMIC64 +; RUN: llc < %s -relocation-model=pic -mtriple=powerpc64-apple-darwin9 | FileCheck %s -check-prefix=PIC64 +; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=powerpc-apple-darwin9 | FileCheck %s -check-prefix=DYNAMIC +; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=powerpc64-apple-darwin9 | FileCheck %s -check-prefix=DYNAMIC64 ; PR4482 target 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" -target triple = "powerpc-apple-darwin8" +target triple = "powerpc-apple-darwin9" define i32 @foo(i64 %x) nounwind { entry: @@ -16,7 +16,7 @@ entry: ; STATIC: .subsections_via_symbols ; PIC: _foo: -; PIC: bl L_exact_log2$stub +; PIC: bl _exact_log2 ; PIC: blr ; PICELF: foo: @@ -24,15 +24,15 @@ entry: ; PICELF: blr ; PIC64: _foo: -; PIC64: bl L_exact_log2$stub +; PIC64: bl _exact_log2 ; PIC64: blr ; DYNAMIC: _foo: -; DYNAMIC: bl L_exact_log2$stub +; DYNAMIC: bl _exact_log2 ; DYNAMIC: blr ; DYNAMIC64: _foo: -; DYNAMIC64: bl L_exact_log2$stub +; DYNAMIC64: bl _exact_log2 ; DYNAMIC64: blr %A = call i32 @exact_log2(i64 %x) nounwind @@ -45,70 +45,7 @@ entry: } -; PIC: .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 -; PIC: L_exact_log2$stub: -; PIC: .indirect_symbol _exact_log2 -; PIC: mflr r0 -; PIC: bcl 20, 31, L_exact_log2$stub$tmp - -; PIC: L_exact_log2$stub$tmp: -; PIC: mflr r11 -; PIC: addis r11, r11, ha16(L_exact_log2$lazy_ptr-L_exact_log2$stub$tmp) -; PIC: mtlr r0 -; PIC: lwzu r12, lo16(L_exact_log2$lazy_ptr-L_exact_log2$stub$tmp)(r11) -; PIC: mtctr r12 -; PIC: bctr - -; PIC: .section __DATA,__la_symbol_ptr,lazy_symbol_pointers -; PIC: L_exact_log2$lazy_ptr: -; PIC: .indirect_symbol _exact_log2 -; PIC: .long dyld_stub_binding_helper - ; PIC: .subsections_via_symbols -; PIC64: .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 -; PIC64: L_exact_log2$stub: -; PIC64: .indirect_symbol _exact_log2 -; PIC64: mflr r0 -; PIC64: bcl 20, 31, L_exact_log2$stub$tmp - -; PIC64: L_exact_log2$stub$tmp: -; PIC64: mflr r11 -; PIC64: addis r11, r11, ha16(L_exact_log2$lazy_ptr-L_exact_log2$stub$tmp) -; PIC64: mtlr r0 -; PIC64: ldu r12, lo16(L_exact_log2$lazy_ptr-L_exact_log2$stub$tmp)(r11) -; PIC64: mtctr r12 -; PIC64: bctr - -; PIC64: .section __DATA,__la_symbol_ptr,lazy_symbol_pointers -; PIC64: L_exact_log2$lazy_ptr: -; PIC64: .indirect_symbol _exact_log2 -; PIC64: .quad dyld_stub_binding_helper ; PIC64: .subsections_via_symbols - -; DYNAMIC: .section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16 -; DYNAMIC: L_exact_log2$stub: -; DYNAMIC: .indirect_symbol _exact_log2 -; DYNAMIC: lis r11, ha16(L_exact_log2$lazy_ptr) -; DYNAMIC: lwzu r12, lo16(L_exact_log2$lazy_ptr)(r11) -; DYNAMIC: mtctr r12 -; DYNAMIC: bctr - -; DYNAMIC: .section __DATA,__la_symbol_ptr,lazy_symbol_pointers -; DYNAMIC: L_exact_log2$lazy_ptr: -; DYNAMIC: .indirect_symbol _exact_log2 -; DYNAMIC: .long dyld_stub_binding_helper - -; DYNAMIC64: .section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16 -; DYNAMIC64: L_exact_log2$stub: -; DYNAMIC64: .indirect_symbol _exact_log2 -; DYNAMIC64: lis r11, ha16(L_exact_log2$lazy_ptr) -; DYNAMIC64: ldu r12, lo16(L_exact_log2$lazy_ptr)(r11) -; DYNAMIC64: mtctr r12 -; DYNAMIC64: bctr - -; DYNAMIC64: .section __DATA,__la_symbol_ptr,lazy_symbol_pointers -; DYNAMIC64: L_exact_log2$lazy_ptr: -; DYNAMIC64: .indirect_symbol _exact_log2 -; DYNAMIC64: .quad dyld_stub_binding_helper diff --git a/llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll b/llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll index 028006320cb..272d882c8bb 100644 --- a/llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll +++ b/llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s -; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin | FileCheck %s -check-prefix=CHECK-D +; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin9 | FileCheck %s -check-prefix=CHECK-D target triple = "powerpc-unknown-linux-gnu" declare void @printf(i8*, ...) @@ -16,5 +16,5 @@ define void @main() { ; CHECK-D-LABEL: @main ; CHECK-D: li r4, 0 -; CHECK-D: bl L_printf$stub +; CHECK-D: bl _printf diff --git a/llvm/test/CodeGen/PowerPC/stubs.ll b/llvm/test/CodeGen/PowerPC/stubs.ll index 694f208198a..a167cb82332 100644 --- a/llvm/test/CodeGen/PowerPC/stubs.ll +++ b/llvm/test/CodeGen/PowerPC/stubs.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -o - -mtriple=powerpc-apple-darwin8 | FileCheck %s +; RUN: llc %s -o - -mtriple=powerpc-apple-darwin9 | FileCheck %s define ppc_fp128 @test1(i64 %X) nounwind readnone { entry: %0 = sitofp i64 %X to ppc_fp128 @@ -6,17 +6,4 @@ entry: } ; CHECK: _test1: -; CHECK: bl L___floatditf$stub -; CHECK: .section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16 -; CHECK: L___floatditf$stub: -; CHECK: .indirect_symbol ___floatditf -; CHECK: lis r11, ha16(L___floatditf$lazy_ptr) -; CHECK: lwzu r12, lo16(L___floatditf$lazy_ptr)(r11) -; CHECK: mtctr r12 -; CHECK: bctr -; CHECK: .section __DATA,__la_symbol_ptr,lazy_symbol_pointers -; CHECK: L___floatditf$lazy_ptr: -; CHECK: .indirect_symbol ___floatditf -; CHECK: .long dyld_stub_binding_helper - - +; CHECK: bl ___floatditf |

