mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 21:45:16 +00:00
Added special test covering a problem with PIC relocation model on SLM architecture. The fix will come in D26855.
llvm-svn: 296746
This commit is contained in:
parent
722a286698
commit
69e584bbd4
27
test/CodeGen/X86/recip-pic.ll
Normal file
27
test/CodeGen/X86/recip-pic.ll
Normal file
@ -0,0 +1,27 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -enable-unsafe-fp-math -mcpu=slm -relocation-model=pic | FileCheck %s --check-prefix=CHECK
|
||||
|
||||
define fastcc float @foo(float %x) unnamed_addr #0 {
|
||||
; CHECK-LABEL: foo:
|
||||
; CHECK: # BB#0: # %entry
|
||||
; CHECK-NEXT: calll .L0$pb
|
||||
; CHECK-NEXT: .Lcfi0:
|
||||
; CHECK-NEXT: .cfi_adjust_cfa_offset 4
|
||||
; CHECK-NEXT: .L0$pb:
|
||||
; CHECK-NEXT: popl %eax
|
||||
; CHECK-NEXT: .Lcfi1:
|
||||
; CHECK-NEXT: .cfi_adjust_cfa_offset -4
|
||||
; CHECK-NEXT: .Ltmp0:
|
||||
; CHECK-NEXT: addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %eax
|
||||
; CHECK-NEXT: movss {{.*#+}} xmm1 = mem[0],zero,zero,zero
|
||||
; CHECK-NEXT: divss %xmm0, %xmm1
|
||||
; CHECK-NEXT: movaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: movss %xmm1, (%eax)
|
||||
; CHECK-NEXT: retl
|
||||
entry:
|
||||
%div = fdiv fast float 3.0, %x
|
||||
store float %div, float* undef, align 4
|
||||
ret float %div
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user