aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/PowerPC/big-endian-actual-args.ll6
-rw-r--r--test/CodeGen/PowerPC/big-endian-formal-args.ll12
2 files changed, 12 insertions, 6 deletions
diff --git a/test/CodeGen/PowerPC/big-endian-actual-args.ll b/test/CodeGen/PowerPC/big-endian-actual-args.ll
index 1a31b9e1ab..d23935756d 100644
--- a/test/CodeGen/PowerPC/big-endian-actual-args.ll
+++ b/test/CodeGen/PowerPC/big-endian-actual-args.ll
@@ -1,5 +1,7 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {addc 4, 4, 6}
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {adde 3, 3, 5}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {addc 4, 4, 6}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {adde 3, 3, 5}
define i64 @foo(i64 %x, i64 %y) {
%z = add i64 %x, %y
diff --git a/test/CodeGen/PowerPC/big-endian-formal-args.ll b/test/CodeGen/PowerPC/big-endian-formal-args.ll
index 1e19f5f3d7..08589f4999 100644
--- a/test/CodeGen/PowerPC/big-endian-formal-args.ll
+++ b/test/CodeGen/PowerPC/big-endian-formal-args.ll
@@ -1,7 +1,11 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 6, 3}
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 4, 2}
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 3, 0}
-; RUN: llvm-as < %s | llc -march=ppc32 | grep {mr 5, 3}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {li 6, 3}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {li 4, 2}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {li 3, 0}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: grep {mr 5, 3}
declare void @bar(i64 %x, i64 %y)