[arm] Pass -triple to llvm-mc for ARM ELF test cases.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 11 Dec 2013 19:38:10 +0000 (19:38 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 11 Dec 2013 19:38:10 +0000 (19:38 +0000)
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

22 files changed:
test/MC/ARM/directive-arch-armv2.s
test/MC/ARM/directive-arch-armv2a.s
test/MC/ARM/directive-arch-armv3.s
test/MC/ARM/directive-arch-armv3m.s
test/MC/ARM/directive-arch-armv4.s
test/MC/ARM/directive-arch-armv4t.s
test/MC/ARM/directive-arch-armv5.s
test/MC/ARM/directive-arch-armv5t.s
test/MC/ARM/directive-arch-armv5te.s
test/MC/ARM/directive-arch-armv6-m.s
test/MC/ARM/directive-arch-armv6.s
test/MC/ARM/directive-arch-armv6j.s
test/MC/ARM/directive-arch-armv6t2.s
test/MC/ARM/directive-arch-armv6z.s
test/MC/ARM/directive-arch-armv6zk.s
test/MC/ARM/directive-arch-armv7-a.s
test/MC/ARM/directive-arch-armv7-m.s
test/MC/ARM/directive-arch-armv7-r.s
test/MC/ARM/directive-arch-armv7.s
test/MC/ARM/directive-arch-armv8-a.s
test/MC/ARM/directive-arch-iwmmxt.s
test/MC/ARM/directive-arch-iwmmxt2.s

index a3699226ab890ee411d43860fa3bf9dce84d85ae..177bc2dfdece0f4c340420b7454e913b22bc4728 100644 (file)
@@ -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
index f118a059999ff521c4b3e73eb6c5e53a5fd2454d..6192321282b5ae3a258844ccd797a26347deb9b1 100644 (file)
@@ -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
index 7b17faaedb27a5cf484266808c10438ccaa90d2e..2203d92401e409211907ceb2e254f5f93500548a 100644 (file)
@@ -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
index befecc8bde0e8ce01c63d3b7d0832ab38b0091f8..2f85c44fc1f389a3792a5b3de74248caeb8b2a26 100644 (file)
@@ -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
index 2e0e49f6fd8fbd9c05c88939efc08af8ad252a05..418e2f7787b27b7a99d7b6c60997ad7e1aa03b19 100644 (file)
@@ -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
index 6a61a385558966889343cab63ff1b0027bb7057c..6ff8871f3408d7e361ec74914b32d556f4fef3d7 100644 (file)
@@ -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
index 4ef4b29b71b098da7ccbc16b67f3684ea4c7cc2b..8ed0c51217bda313739657bd65a99c36f7ea7f1a 100644 (file)
@@ -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
index e5950bebca780e204f77cf99d125c06eab2c9ae2..5176850b86e796d9285359d4394ea2cf221ed6c0 100644 (file)
@@ -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
index 9e69e3772538fcf499ffba1811aebfba10f75d3e..2320f287f00cbe89f9f672430a91d4ff99dae551 100644 (file)
@@ -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
index 81acd73e1ab8b1df2c03d4d6f464bed03f63944e..5a28905b6a94a8d6e81a0f935932f698e5c3e96c 100644 (file)
@@ -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
index f8076ceb8fd8e733587ed0ee7e411117870006d2..dbac7126720306afc6991517192cd7a8011a63ed 100644 (file)
@@ -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
index e3369464eaef7e3a80d2f41cfb405d51aa9fa83d..619e8d3e30708941dc3764e55142b4b431179bb1 100644 (file)
@@ -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
index dfaa6d2c63a0da523e321663409a9956068712eb..ce55df792ff4aa890222c18a8a896800b87ece35 100644 (file)
@@ -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
index 077153752fe5bd84c928806a75c74fdfbed3583e..ac7751d22a68543eadecf5b4d837788733a183c1 100644 (file)
@@ -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
index f6eca4e1e5bc20422743bec610f93c7923c9c048..7cdb9091a8f448006536bd9c0d113bbe6b3894cd 100644 (file)
@@ -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
index f36dbc0b5feeccb83910ab640e3a6420c1871d4c..58571cbe0aed50699ef9306e699b250d1e1e1114 100644 (file)
@@ -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
index e3c99b2cc8dcad97459785b8ac39f1b07e503ea2..6533cc6b8e7008ff9653f4b509021469244599c4 100644 (file)
@@ -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
index 9d1316c1509ef52299ef7d2e7348da033c8edaaf..2aa702c906e487edb842b2ece7efbc8f26b7af16 100644 (file)
@@ -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
index 035bcbd9e22a359eb627fa283319fbaf8ad15c70..5d8f2ca3218c0f1741c546bf911cd69b306a8714 100644 (file)
@@ -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
index b7cd9b1329a5a8121092ad87179e1bec6fa58c34..33e0b586ef8a41bfaf607a7e940a5dd8061d6184 100644 (file)
@@ -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
index 1a325e1365f42327071881c85f715468fe4a8538..53365afb95aa0e5e6c809a11fe1319aeda173950 100644 (file)
@@ -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
index 42f0789d40b24faf1301431f3c0ebc441593cd1a..d71098f79c447751c632c61d9982d1eb162474a6 100644 (file)
@@ -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