blob: be1818a032355cd641693aa7954799439a125bd8 [file] [log] [blame]
Ulrich Weigand3a610eb2015-04-01 12:54:25 +00001
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"
Ulrich Weigand66ff51b2015-05-05 19:35:52 +00005// CHECK-DEFAULT-NOT: "-target-feature" "+vector"
6// CHECK-DEFAULT-NOT: "-target-feature" "-vector"
Ulrich Weigand3a610eb2015-04-01 12:54:25 +00007
8// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s
9// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s
10// CHECK-HTM: "-target-feature" "+transactional-execution"
11// CHECK-HTM-NOT: "-target-feature" "-transactional-execution"
12
13// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s
14// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s
15// CHECK-NOHTM: "-target-feature" "-transactional-execution"
16// CHECK-NOHTM-NOT: "-target-feature" "+transactional-execution"
17
Ulrich Weigand66ff51b2015-05-05 19:35:52 +000018// RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s
19// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-vx -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s
20// CHECK-VX: "-target-feature" "+vector"
21// CHECK-VX-NOT: "-target-feature" "-vector"
22//
23// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-vx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVX %s
24// RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -mno-vx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVX %s
25// CHECK-NOVX: "-target-feature" "-vector"
26// CHECK-NOVX-NOT: "-target-feature" "+vector"