diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/PowerPC/pr26180.ll | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/PowerPC/pr26180.ll')
| -rw-r--r-- | test/CodeGen/PowerPC/pr26180.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/pr26180.ll b/test/CodeGen/PowerPC/pr26180.ll new file mode 100644 index 000000000000..e4cbcb8725d5 --- /dev/null +++ b/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) |
