diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-02-29 16:42:27 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-02-29 16:42:27 +0000 |
commit | 1a5706ca1bbf4028fb01424238ae1d22f0f64ba6 (patch) | |
tree | b7564d1e5b9e850fe07f000554f7b1dbb17eae6e /llvm/test/CodeGen/PowerPC | |
parent | 4823631af475410cb7c2c47af28ed010bf956d45 (diff) | |
download | bcm5719-llvm-1a5706ca1bbf4028fb01424238ae1d22f0f64ba6.tar.gz bcm5719-llvm-1a5706ca1bbf4028fb01424238ae1d22f0f64ba6.zip |
Fix for PR26180
Corresponds to Phabricator review:
http://reviews.llvm.org/D16592
This fix includes both an update to how we handle the "generic" CPU on LE
systems as well as Anton's fix for the Fast Isel issue.
llvm-svn: 262233
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/pr26180.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pr26180.ll b/llvm/test/CodeGen/PowerPC/pr26180.ll new file mode 100644 index 00000000000..e4cbcb8725d --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/pr26180.ll @@ -0,0 +1,14 @@ +; RUN: llc -mcpu=generic -mtriple=powerpc64le-unknown-unknown -O0 < %s | FileCheck %s --check-prefix=GENERIC +; RUN: llc -mcpu=ppc -mtriple=powerpc64le-unknown-unknown -O0 < %s | FileCheck %s + +define i32 @bad(double %x) { + %1 = fptoui double %x to i32 + ret i32 %1 +} + +; CHECK: fctidz 1, 1 +; CHECK: stfd 1, [[OFF:.*]](1) +; CHECK: lwz {{[0-9]*}}, [[OFF]](1) +; GENERIC: fctiwuz 1, 1 +; GENERIC: stfd 1, [[OFF:.*]](1) +; GENERIC: lwz {{[0-9]*}}, [[OFF]](1) |