blob: 25937d1cdce8ccbda0246292eec7f13721a1dabc [file] [log] [blame]
Pirama Arumuga Nainar33337ca2015-05-06 11:48:57 -07001
2// RUN: %clang -target s390x-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-DEFAULT %s
3// CHECK-DEFAULT-NOT: "-target-feature" "+transactional-execution"
4// CHECK-DEFAULT-NOT: "-target-feature" "-transactional-execution"
5
6// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s
7// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s
8// CHECK-HTM: "-target-feature" "+transactional-execution"
9// CHECK-HTM-NOT: "-target-feature" "-transactional-execution"
10
11// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s
12// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s
13// CHECK-NOHTM: "-target-feature" "-transactional-execution"
14// CHECK-NOHTM-NOT: "-target-feature" "+transactional-execution"
15