summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/atomic-non-integer.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-03-22 19:14:38 +0000
committerTim Northover <tnorthover@apple.com>2016-03-22 19:14:38 +0000
commitb49a8a9dbbf7cf86293577e08746c219bb7d0de2 (patch)
tree7a59e825bc248a0a88687d73507a045b98ce2fca /llvm/test/CodeGen/X86/atomic-non-integer.ll
parentbfecef5e1b474078c23b86eb5beb5d4c271cb7c9 (diff)
downloadbcm5719-llvm-b49a8a9dbbf7cf86293577e08746c219bb7d0de2.tar.gz
bcm5719-llvm-b49a8a9dbbf7cf86293577e08746c219bb7d0de2.zip
CodeGen: check return types match when emitting tail call to builtin.
We were just completely ignoring the types when determining whether we could safely emit a libcall as a tail call. This is clearly wrong. Theoretically, we could dig deeper looking for incidental matches (much like the generic code in Analysis.cpp does), but it's probably not worth it for the few libcalls that exist. llvm-svn: 264084
Diffstat (limited to 'llvm/test/CodeGen/X86/atomic-non-integer.ll')
-rw-r--r--llvm/test/CodeGen/X86/atomic-non-integer.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/atomic-non-integer.ll b/llvm/test/CodeGen/X86/atomic-non-integer.ll
index 98fcd96d3e4..17b73ecf4e1 100644
--- a/llvm/test/CodeGen/X86/atomic-non-integer.ll
+++ b/llvm/test/CodeGen/X86/atomic-non-integer.ll
@@ -43,7 +43,7 @@ define half @load_half(half* %fptr) {
; CHECK-LABEL: @load_half
; CHECK: movw (%rdi), %ax
; CHECK: movzwl %ax, %edi
-; CHECK: jmp __gnu_h2f_ieee
+; CHECK: callq __gnu_h2f_ieee
%v = load atomic half, half* %fptr unordered, align 2
ret half %v
}
OpenPOWER on IntegriCloud