Use the integrated assembler as default on SystemZ
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 13 Jan 2015 19:45:16 +0000 (19:45 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 13 Jan 2015 19:45:16 +0000 (19:45 +0000)
This was already done in clang, this commit now uses the integrated
assembler as default when using LLVM tools directly.

A number of test cases deliberately using an invalid instruction in
inline asm now have to use -no-integrated-as.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225820 91177308-0d34-0410-b5e6-96231b3b80d8

23 files changed:
lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
test/CodeGen/SystemZ/asm-01.ll
test/CodeGen/SystemZ/asm-02.ll
test/CodeGen/SystemZ/asm-03.ll
test/CodeGen/SystemZ/asm-04.ll
test/CodeGen/SystemZ/asm-05.ll
test/CodeGen/SystemZ/asm-06.ll
test/CodeGen/SystemZ/asm-07.ll
test/CodeGen/SystemZ/asm-08.ll
test/CodeGen/SystemZ/asm-09.ll
test/CodeGen/SystemZ/asm-10.ll
test/CodeGen/SystemZ/asm-11.ll
test/CodeGen/SystemZ/asm-12.ll
test/CodeGen/SystemZ/asm-13.ll
test/CodeGen/SystemZ/asm-14.ll
test/CodeGen/SystemZ/asm-15.ll
test/CodeGen/SystemZ/asm-16.ll
test/CodeGen/SystemZ/asm-17.ll
test/CodeGen/SystemZ/asm-18.ll
test/CodeGen/SystemZ/fp-cmp-04.ll
test/CodeGen/SystemZ/int-cmp-44.ll
test/CodeGen/SystemZ/int-cmp-45.ll
test/CodeGen/SystemZ/memchr-02.ll

index 35887faef831f76b813128b706cbe15e47466f65..0161d6263e7d1f22f48f289a2474d60022ff2d50 100644 (file)
@@ -24,4 +24,6 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(StringRef TT) {
   UsesELFSectionDirectiveForBSS = true;
   SupportsDebugInformation = true;
   ExceptionsType = ExceptionHandling::DwarfCFI;
+
+  UseIntegratedAssembler = true;
 }
index 801378c5fcbde546d97ebc806be3c1cf71f0eb0c..3dbc8ac268b7ba62e90c19abffcf1aa8123fc1ed 100644 (file)
@@ -1,7 +1,7 @@
 ; Test the "Q" asm constraint, which accepts addresses that have a base
 ; and a 12-bit displacement.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Check the lowest range.
 define void @f1(i64 %base) {
index ad1e35bb36210ef028b7430d142dbce0c555b530..458bfeb4975339cee753f234d0ebea23bf06b0f1 100644 (file)
@@ -1,7 +1,7 @@
 ; Test the "R" asm constraint, which accepts addresses that have a base,
 ; an index and a 12-bit displacement.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Check the lowest range.
 define void @f1(i64 %base) {
index fa3e1a7d01d8ba88ff2299396c662d2e989e9de4..2e60ad61ef40d31965d4ca35b6e3d48ce8dae421 100644 (file)
@@ -1,7 +1,7 @@
 ; Test the "S" asm constraint, which accepts addresses that have a base
 ; and a 20-bit displacement.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define void @f1(i64 %base) {
 ; CHECK-LABEL: f1:
index af7ea9fdef94c630693c2596da591c0fdf7a09f6..b212253dbd9cb7b959c8563b0f15ad111fefb42b 100644 (file)
@@ -1,7 +1,7 @@
 ; Test the "T" asm constraint, which accepts addresses that have a base,
 ; an index and a 20-bit displacement.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define void @f1(i64 %base) {
 ; CHECK-LABEL: f1:
index e18cb757b142c8f9f7a0b867613489f8b068f52b..db99b10853edecbbd9b6a7f453663cbcc58e8cea 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "m" asm constraint, which is equivalent to "T".
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define void @f1(i64 %base) {
 ; CHECK-LABEL: f1:
index f9848a2df6fcbd156a8f68d4073071226a88ec2a..73c938f9fcf869893f18d9e07a102fc9a1d7e19c 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the GPR constraint "a", which forbids %r0.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define i64 @f1() {
 ; CHECK-LABEL: f1:
index bf63150cd818ba7622dc5d8318fcf9f7369736bb..42b89e6115bfb0f726bc25d9b24905e06aaad972 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the GPR constraint "r".
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define i64 @f1() {
 ; CHECK-LABEL: f1:
index 166233752db221747544b5db1e8bda52d7331199..4185108e73c57d36f663e8958ae5bd953a5216be 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the GPR constraint "d", which is equivalent to "r".
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define i64 @f1() {
 ; CHECK-LABEL: f1:
index 5cd7efb94009e3f63adf8cbbd9510d9c911ca199..b9d86cfbfebbcba6427660b0ccdc4741685fe9a0 100644 (file)
@@ -1,6 +1,6 @@
 ; Test matching operands with the GPR constraint "r".
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define void @f1(i32 *%dst) {
 ; CHECK-LABEL: f1:
index 0eccc1972187c42e51c244d752cf984959aa2068..b71db8350781de8d1b28b7242ac78ddf7e6f5e88 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the FPR constraint "f".
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 define float @f1() {
 ; CHECK-LABEL: f1:
index 8aeb784134a367115d01e8820ed0eddef86bb2c2..8a4cdbb6a9321c2a532fd32cf8595a6e8f814924 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "I" constraint (8-bit unsigned constants).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the first valid value.
 define i32 @f1() {
index feecbacf09e8f9ee3feb88a8efc09540e3864154..115092cb6aa5d57d58d348c8deaf4215af30c735 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "J" constraint (12-bit unsigned constants).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the first valid value.
 define i32 @f1() {
index b88170079ecca1e3b73b74759e27beeb8ab90159..83454eab1cb1ca7eaef903793574e94cbfe8895f 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "K" constraint (16-bit signed constants).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the first valid value.
 define i32 @f1() {
index bcd8b1ebc3df519dea230833b0f6509992fd6168..41b8f40e09d4d01d0533b103c4205e772d147c74 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "L" constraint (20-bit signed constants).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the first valid value.
 define i32 @f1() {
index 886ee0e897dcafcb14052e9771443a6cadbcb41c..8361b68499239468ff00f39d5e58d17288e1f635 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "M" constraint (0x7fffffff)
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the valid value.
 define i32 @f1() {
index 886ee0e897dcafcb14052e9771443a6cadbcb41c..8361b68499239468ff00f39d5e58d17288e1f635 100644 (file)
@@ -1,6 +1,6 @@
 ; Test the "M" constraint (0x7fffffff)
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test 1 below the valid value.
 define i32 @f1() {
index 7bc9da32ea9500ab1417b7741880b48caa2dd5c5..533b5e90d62d45e84f5039dd7614594b8a89f3fb 100644 (file)
@@ -1,6 +1,6 @@
 ; Test explicit register names.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 ; Test i32 GPRs.
 define i32 @f1() {
index d60654b7863d5a6a0e0fc13c7eefce7a59d76ec1..71e145a285ff8058c2031e17dd0bdf89f8480af5 100644 (file)
@@ -1,7 +1,7 @@
 ; Test high-word operations, using "h" constraints to force a high
 ; register and "r" constraints to force a low register.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 -no-integrated-as | FileCheck %s
 
 ; Test loads and stores involving mixtures of high and low registers.
 define void @f1(i32 *%ptr1, i32 *%ptr2) {
index 781a3beb4d4d8ac04be30d675a4faf691cce4813..1637ccb0791b0b26679ebdbd8626248e54d703eb 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that floating-point compares are omitted if CC already has the
 ; right value.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 -no-integrated-as | FileCheck %s
 
 declare float @llvm.fabs.f32(float %f)
 
index f065e64212954d9712d1cd00675d1eecbd72a021..30c1c4f1ed6c8b7e3e9e97098d3f37630f42af8e 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that compares are omitted if CC already has the right value
 ; (z10 version).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 -no-integrated-as | FileCheck %s
 
 declare void @foo()
 
index 9c9c49c05df1d752dd1a994a8f1db29b45facaee..c9affa672d544cc1a9fb4202dd4cd6275a81d267 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that compares are omitted if CC already has the right value
 ; (z196 version).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 -no-integrated-as | FileCheck %s
 
 ; Addition provides enough for equality comparisons with zero.  First teest
 ; the EQ case with LOC.
index 982b3964f190f52c26b360803e9a42664247c5f0..8986627a6057b8b2fabbba0d38918cdad036081b 100644 (file)
@@ -1,6 +1,6 @@
 ; Test memchr using SRST, with the correct prototype.
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
 
 declare i8 *@memchr(i8 *%src, i32 %char, i64 %len)