From: Logan Chien Date: Wed, 11 Dec 2013 19:38:10 +0000 (+0000) Subject: [arm] Pass -triple to llvm-mc for ARM ELF test cases. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e18ad3d4c8f930ed3148d84f5fab2c3cd6c36a69;p=oota-llvm.git [arm] Pass -triple to llvm-mc for ARM ELF test cases. Replace -arch with -triple so that we can guarantee that ELF object files can be generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197062 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ARM/directive-arch-armv2.s b/test/MC/ARM/directive-arch-armv2.s index a3699226ab8..177bc2dfdec 100644 --- a/test/MC/ARM/directive-arch-armv2.s +++ b/test/MC/ARM/directive-arch-armv2.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv2 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv2a.s b/test/MC/ARM/directive-arch-armv2a.s index f118a059999..6192321282b 100644 --- a/test/MC/ARM/directive-arch-armv2a.s +++ b/test/MC/ARM/directive-arch-armv2a.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv2a architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv3.s b/test/MC/ARM/directive-arch-armv3.s index 7b17faaedb2..2203d92401e 100644 --- a/test/MC/ARM/directive-arch-armv3.s +++ b/test/MC/ARM/directive-arch-armv3.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv3 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv3m.s b/test/MC/ARM/directive-arch-armv3m.s index befecc8bde0..2f85c44fc1f 100644 --- a/test/MC/ARM/directive-arch-armv3m.s +++ b/test/MC/ARM/directive-arch-armv3m.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv3m architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv4.s b/test/MC/ARM/directive-arch-armv4.s index 2e0e49f6fd8..418e2f7787b 100644 --- a/test/MC/ARM/directive-arch-armv4.s +++ b/test/MC/ARM/directive-arch-armv4.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv4 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv4t.s b/test/MC/ARM/directive-arch-armv4t.s index 6a61a385558..6ff8871f340 100644 --- a/test/MC/ARM/directive-arch-armv4t.s +++ b/test/MC/ARM/directive-arch-armv4t.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv4t architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv5.s b/test/MC/ARM/directive-arch-armv5.s index 4ef4b29b71b..8ed0c51217b 100644 --- a/test/MC/ARM/directive-arch-armv5.s +++ b/test/MC/ARM/directive-arch-armv5.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv5 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv5t.s b/test/MC/ARM/directive-arch-armv5t.s index e5950bebca7..5176850b86e 100644 --- a/test/MC/ARM/directive-arch-armv5t.s +++ b/test/MC/ARM/directive-arch-armv5t.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv5t architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv5te.s b/test/MC/ARM/directive-arch-armv5te.s index 9e69e377253..2320f287f00 100644 --- a/test/MC/ARM/directive-arch-armv5te.s +++ b/test/MC/ARM/directive-arch-armv5te.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv5te architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6-m.s b/test/MC/ARM/directive-arch-armv6-m.s index 81acd73e1ab..5a28905b6a9 100644 --- a/test/MC/ARM/directive-arch-armv6-m.s +++ b/test/MC/ARM/directive-arch-armv6-m.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6-m architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6.s b/test/MC/ARM/directive-arch-armv6.s index f8076ceb8fd..dbac7126720 100644 --- a/test/MC/ARM/directive-arch-armv6.s +++ b/test/MC/ARM/directive-arch-armv6.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6j.s b/test/MC/ARM/directive-arch-armv6j.s index e3369464eae..619e8d3e307 100644 --- a/test/MC/ARM/directive-arch-armv6j.s +++ b/test/MC/ARM/directive-arch-armv6j.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6j architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6t2.s b/test/MC/ARM/directive-arch-armv6t2.s index dfaa6d2c63a..ce55df792ff 100644 --- a/test/MC/ARM/directive-arch-armv6t2.s +++ b/test/MC/ARM/directive-arch-armv6t2.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6t2 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6z.s b/test/MC/ARM/directive-arch-armv6z.s index 077153752fe..ac7751d22a6 100644 --- a/test/MC/ARM/directive-arch-armv6z.s +++ b/test/MC/ARM/directive-arch-armv6z.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6z architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv6zk.s b/test/MC/ARM/directive-arch-armv6zk.s index f6eca4e1e5b..7cdb9091a8f 100644 --- a/test/MC/ARM/directive-arch-armv6zk.s +++ b/test/MC/ARM/directive-arch-armv6zk.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv6zk architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv7-a.s b/test/MC/ARM/directive-arch-armv7-a.s index f36dbc0b5fe..58571cbe0ae 100644 --- a/test/MC/ARM/directive-arch-armv7-a.s +++ b/test/MC/ARM/directive-arch-armv7-a.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv7-a architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv7-m.s b/test/MC/ARM/directive-arch-armv7-m.s index e3c99b2cc8d..6533cc6b8e7 100644 --- a/test/MC/ARM/directive-arch-armv7-m.s +++ b/test/MC/ARM/directive-arch-armv7-m.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv7-m architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv7-r.s b/test/MC/ARM/directive-arch-armv7-r.s index 9d1316c1509..2aa702c906e 100644 --- a/test/MC/ARM/directive-arch-armv7-r.s +++ b/test/MC/ARM/directive-arch-armv7-r.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv7-r architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv7.s b/test/MC/ARM/directive-arch-armv7.s index 035bcbd9e22..5d8f2ca3218 100644 --- a/test/MC/ARM/directive-arch-armv7.s +++ b/test/MC/ARM/directive-arch-armv7.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv7 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-armv8-a.s b/test/MC/ARM/directive-arch-armv8-a.s index b7cd9b1329a..33e0b586ef8 100644 --- a/test/MC/ARM/directive-arch-armv8-a.s +++ b/test/MC/ARM/directive-arch-armv8-a.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ armv8-a architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-iwmmxt.s b/test/MC/ARM/directive-arch-iwmmxt.s index 1a325e1365f..53365afb95a 100644 --- a/test/MC/ARM/directive-arch-iwmmxt.s +++ b/test/MC/ARM/directive-arch-iwmmxt.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ iwmmxt architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified diff --git a/test/MC/ARM/directive-arch-iwmmxt2.s b/test/MC/ARM/directive-arch-iwmmxt2.s index 42f0789d40b..d71098f79c4 100644 --- a/test/MC/ARM/directive-arch-iwmmxt2.s +++ b/test/MC/ARM/directive-arch-iwmmxt2.s @@ -3,9 +3,9 @@ @ This test case will check the default .ARM.attributes value for the @ iwmmxt2 architecture. -@ RUN: llvm-mc < %s -arch=arm -filetype=asm \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \ @ RUN: | FileCheck %s --check-prefix=CHECK-ASM -@ RUN: llvm-mc < %s -arch=arm -filetype=obj \ +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \ @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified