llvm.org GIT mirror llvm / e18ad3d
[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 Logan Chien 6 years ago
22 changed file(s) with 44 addition(s) and 44 deletion(s). Raw diff Collapse all Expand all
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv2 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv2a architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv3 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv3m architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv4 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv4t architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5t architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5te architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6-m architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6j architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6t2 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6z architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6zk architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-a architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-m architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-r architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv8-a architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ iwmmxt architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified
22 @ This test case will check the default .ARM.attributes value for the
33 @ iwmmxt2 architecture.
44
5 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
66 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
88 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
99
1010 .syntax unified