27 lines · cpp
1 2// RUN: %clang -target s390x-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-DEFAULT %s3// CHECK-DEFAULT-NOT: "-target-feature" "+transactional-execution"4// CHECK-DEFAULT-NOT: "-target-feature" "-transactional-execution"5// CHECK-DEFAULT-NOT: "-target-feature" "+vector"6// CHECK-DEFAULT-NOT: "-target-feature" "-vector"7 8// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s9// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s10// 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 %s14// RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s15// CHECK-NOHTM: "-target-feature" "-transactional-execution"16// CHECK-NOHTM-NOT: "-target-feature" "+transactional-execution"17 18// RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s19// RUN: %clang -target s390x-unknown-linux-gnu %s -mno-vx -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s20// 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 %s24// RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -mno-vx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVX %s25// CHECK-NOVX: "-target-feature" "-vector"26// CHECK-NOVX-NOT: "-target-feature" "+vector"27