[PowerPC] Fix ppc64-elf-abi.ll test case on Darwin
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 29 Jul 2014 12:48:14 +0000 (12:48 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 29 Jul 2014 12:48:14 +0000 (12:48 +0000)
Use full -mtriple instead of just -march to ensure Linux ABI
(ELFv1 or ELFv2) is selected.

llvm-svn: 214179

llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll

index c7c9ff4..d82122d 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llc -march=ppc64 < %s | FileCheck %s -check-prefix=CHECK-ELFv1
-; RUN: llc -march=ppc64 -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1
-; RUN: llc -march=ppc64 -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2
-; RUN: llc -march=ppc64le < %s | FileCheck %s -check-prefix=CHECK-ELFv2
-; RUN: llc -march=ppc64le -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1
-; RUN: llc -march=ppc64le -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2
+; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-ELFv1
+; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1
+; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-ELFv2
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2
 
 ; CHECK-ELFv2: .abiversion 2
 ; CHECK-ELFv1-NOT: .abiversion 2