summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/negative-sin.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-24 02:11:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-24 02:11:18 +0000
commit432a587cf00b3ecb552750f0f4dbd830e18f500c (patch)
tree6f3ee8640c51d21d68de3e22872f302da18a00a1 /llvm/test/CodeGen/X86/negative-sin.ll
parenta277d024f7a7c00796344105dbe0f5c427383158 (diff)
downloadbcm5719-llvm-432a587cf00b3ecb552750f0f4dbd830e18f500c.tar.gz
bcm5719-llvm-432a587cf00b3ecb552750f0f4dbd830e18f500c.zip
Don't assume a null GV is local for ELF and MachO.
This is already a simplification, and should help with avoiding a plt reference when calling an intrinsic with -fno-plt. With this change we return false for null GVs, so the caller only needs to check the new metadata to decide if it should use foo@plt or *foo@got. llvm-svn: 323297
Diffstat (limited to 'llvm/test/CodeGen/X86/negative-sin.ll')
-rw-r--r--llvm/test/CodeGen/X86/negative-sin.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/negative-sin.ll b/llvm/test/CodeGen/X86/negative-sin.ll
index c30cd2741e6..9f00dbb01ff 100644
--- a/llvm/test/CodeGen/X86/negative-sin.ll
+++ b/llvm/test/CodeGen/X86/negative-sin.ll
@@ -28,7 +28,7 @@ define double @strict(double %e) nounwind {
define double @fast(double %e) nounwind {
; CHECK-LABEL: fast:
; CHECK: # %bb.0:
-; CHECK-NEXT: jmp sin # TAILCALL
+; CHECK-NEXT: jmp sin@PLT # TAILCALL
%f = fsub fast double 0.0, %e
%g = call double @sin(double %f) readonly
%h = fsub fast double 0.0, %g
@@ -40,7 +40,7 @@ define double @fast(double %e) nounwind {
define double @nsz(double %e) nounwind {
; CHECK-LABEL: nsz:
; CHECK: # %bb.0:
-; CHECK-NEXT: jmp sin # TAILCALL
+; CHECK-NEXT: jmp sin@PLT # TAILCALL
%f = fsub nsz double 0.0, %e
%g = call double @sin(double %f) readonly
%h = fsub nsz double 0.0, %g
@@ -88,7 +88,7 @@ define double @semi_strict2(double %e) nounwind {
define double @fn_attr(double %e) nounwind #0 {
; CHECK-LABEL: fn_attr:
; CHECK: # %bb.0:
-; CHECK-NEXT: jmp sin # TAILCALL
+; CHECK-NEXT: jmp sin@PLT # TAILCALL
%f = fsub double 0.0, %e
%g = call double @sin(double %f) readonly
%h = fsub double 0.0, %g
OpenPOWER on IntegriCloud