diff options
| author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-01-17 19:34:57 +0000 |
|---|---|---|
| committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-01-17 19:34:57 +0000 |
| commit | dee1ef8f53ab138dc7b1cb2d37b129f779d51701 (patch) | |
| tree | f36519c8512d873b3fd7981e481048b00a602edf /llvm/test/CodeGen/PowerPC | |
| parent | e343bc83f014e4d7092799f0d65d309f08e1aa5c (diff) | |
| download | bcm5719-llvm-dee1ef8f53ab138dc7b1cb2d37b129f779d51701.tar.gz bcm5719-llvm-dee1ef8f53ab138dc7b1cb2d37b129f779d51701.zip | |
This patch fixes PR13626 by providing i128 support in the return
calling convention. 128-bit integers are now properly returned
in GPR3 and GPR4 on PowerPC.
llvm-svn: 172745
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/quadint-return.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/quadint-return.ll b/llvm/test/CodeGen/PowerPC/quadint-return.ll new file mode 100644 index 00000000000..36c8599928e --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/quadint-return.ll @@ -0,0 +1,18 @@ +; RUN: llc -O0 -debug -o - < %s 2>&1 | FileCheck %s + +target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64" +target triple = "powerpc64-unknown-linux-gnu" + +define i128 @foo() nounwind { +entry: + %x = alloca i128, align 16 + store i128 27, i128* %x, align 16 + %0 = load i128* %x, align 16 + ret i128 %0 +} + +; CHECK: ********** Function: foo +; CHECK: ********** FAST REGISTER ALLOCATION ********** +; CHECK: %X3<def> = COPY %vreg +; CHECK-NEXT: %X4<def> = COPY %vreg +; CHECK-NEXT: BLR |

