brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.1 KiB · 7fc3e3e Raw
162 lines · c
1// RUN: %clang --target=aarch64-none-gnu -ffixed-x1 -### %s 2> %t2// RUN: FileCheck --check-prefix=CHECK-FIXED-X1 < %t %s3// CHECK-FIXED-X1: "-target-feature" "+reserve-x1"4 5// RUN: %clang --target=aarch64-none-gnu -ffixed-x2 -### %s 2> %t6// RUN: FileCheck --check-prefix=CHECK-FIXED-X2 < %t %s7// CHECK-FIXED-X2: "-target-feature" "+reserve-x2"8 9// RUN: %clang --target=aarch64-none-gnu -ffixed-x3 -### %s 2> %t10// RUN: FileCheck --check-prefix=CHECK-FIXED-X3 < %t %s11// CHECK-FIXED-X3: "-target-feature" "+reserve-x3"12 13// RUN: %clang --target=aarch64-none-gnu -ffixed-x4 -### %s 2> %t14// RUN: FileCheck --check-prefix=CHECK-FIXED-X4 < %t %s15// CHECK-FIXED-X4: "-target-feature" "+reserve-x4"16 17// RUN: %clang --target=aarch64-none-gnu -ffixed-x5 -### %s 2> %t18// RUN: FileCheck --check-prefix=CHECK-FIXED-X5 < %t %s19// CHECK-FIXED-X5: "-target-feature" "+reserve-x5"20 21// RUN: %clang --target=aarch64-none-gnu -ffixed-x6 -### %s 2> %t22// RUN: FileCheck --check-prefix=CHECK-FIXED-X6 < %t %s23// CHECK-FIXED-X6: "-target-feature" "+reserve-x6"24 25// RUN: %clang --target=aarch64-none-gnu -ffixed-x7 -### %s 2> %t26// RUN: FileCheck --check-prefix=CHECK-FIXED-X7 < %t %s27// CHECK-FIXED-X7: "-target-feature" "+reserve-x7"28 29// RUN: %clang --target=aarch64-none-gnu -ffixed-x9 -### %s 2> %t30// RUN: FileCheck --check-prefix=CHECK-FIXED-X9 < %t %s31// CHECK-FIXED-X9: "-target-feature" "+reserve-x9"32 33// RUN: %clang --target=aarch64-none-gnu -ffixed-x10 -### %s 2> %t34// RUN: FileCheck --check-prefix=CHECK-FIXED-X10 < %t %s35// CHECK-FIXED-X10: "-target-feature" "+reserve-x10"36 37// RUN: %clang --target=aarch64-none-gnu -ffixed-x11 -### %s 2> %t38// RUN: FileCheck --check-prefix=CHECK-FIXED-X11 < %t %s39// CHECK-FIXED-X11: "-target-feature" "+reserve-x11"40 41// RUN: %clang --target=aarch64-none-gnu -ffixed-x12 -### %s 2> %t42// RUN: FileCheck --check-prefix=CHECK-FIXED-X12 < %t %s43// CHECK-FIXED-X12: "-target-feature" "+reserve-x12"44 45// RUN: %clang --target=aarch64-none-gnu -ffixed-x13 -### %s 2> %t46// RUN: FileCheck --check-prefix=CHECK-FIXED-X13 < %t %s47// CHECK-FIXED-X13: "-target-feature" "+reserve-x13"48 49// RUN: %clang --target=aarch64-none-gnu -ffixed-x14 -### %s 2> %t50// RUN: FileCheck --check-prefix=CHECK-FIXED-X14 < %t %s51// CHECK-FIXED-X14: "-target-feature" "+reserve-x14"52 53// RUN: %clang --target=aarch64-none-gnu -ffixed-x15 -### %s 2> %t54// RUN: FileCheck --check-prefix=CHECK-FIXED-X15 < %t %s55// CHECK-FIXED-X15: "-target-feature" "+reserve-x15"56 57// RUN: %clang --target=aarch64-none-gnu -ffixed-x18 -### %s 2> %t58// RUN: FileCheck --check-prefix=CHECK-FIXED-X18 < %t %s59// CHECK-FIXED-X18: "-target-feature" "+reserve-x18"60 61// RUN: %clang --target=aarch64-none-gnu -ffixed-x20 -### %s 2> %t62// RUN: FileCheck --check-prefix=CHECK-FIXED-X20 < %t %s63// CHECK-FIXED-X20: "-target-feature" "+reserve-x20"64 65// RUN: %clang --target=aarch64-none-gnu -ffixed-x21 -### %s 2> %t66// RUN: FileCheck --check-prefix=CHECK-FIXED-X21 < %t %s67// CHECK-FIXED-X21: "-target-feature" "+reserve-x21"68 69// RUN: %clang --target=aarch64-none-gnu -ffixed-x22 -### %s 2> %t70// RUN: FileCheck --check-prefix=CHECK-FIXED-X22 < %t %s71// CHECK-FIXED-X22: "-target-feature" "+reserve-x22"72 73// RUN: %clang --target=aarch64-none-gnu -ffixed-x23 -### %s 2> %t74// RUN: FileCheck --check-prefix=CHECK-FIXED-X23 < %t %s75// CHECK-FIXED-X23: "-target-feature" "+reserve-x23"76 77// RUN: %clang --target=aarch64-none-gnu -ffixed-x24 -### %s 2> %t78// RUN: FileCheck --check-prefix=CHECK-FIXED-X24 < %t %s79// CHECK-FIXED-X24: "-target-feature" "+reserve-x24"80 81// RUN: %clang --target=aarch64-none-gnu -ffixed-x25 -### %s 2> %t82// RUN: FileCheck --check-prefix=CHECK-FIXED-X25 < %t %s83// CHECK-FIXED-X25: "-target-feature" "+reserve-x25"84 85// RUN: %clang --target=aarch64-none-gnu -ffixed-x26 -### %s 2> %t86// RUN: FileCheck --check-prefix=CHECK-FIXED-X26 < %t %s87// CHECK-FIXED-X26: "-target-feature" "+reserve-x26"88 89// RUN: %clang --target=aarch64-none-gnu -ffixed-x27 -### %s 2> %t90// RUN: FileCheck --check-prefix=CHECK-FIXED-X27 < %t %s91// CHECK-FIXED-X27: "-target-feature" "+reserve-x27"92 93// RUN: %clang --target=aarch64-none-gnu -ffixed-x28 -### %s 2> %t94// RUN: FileCheck --check-prefix=CHECK-FIXED-X28 < %t %s95// CHECK-FIXED-X28: "-target-feature" "+reserve-x28"96 97// Test multiple of reserve-x# options together.98// RUN: %clang --target=aarch64-none-gnu \99// RUN: -ffixed-x1 \100// RUN: -ffixed-x2 \101// RUN: -ffixed-x18 \102// RUN: -### %s 2> %t103// RUN: FileCheck \104// RUN: --check-prefix=CHECK-FIXED-X1 \105// RUN: --check-prefix=CHECK-FIXED-X2 \106// RUN: --check-prefix=CHECK-FIXED-X18 \107// RUN: < %t %s108 109// Test all reserve-x# options together.110// RUN: %clang --target=aarch64-none-gnu \111// RUN: -ffixed-x1 \112// RUN: -ffixed-x2 \113// RUN: -ffixed-x3 \114// RUN: -ffixed-x4 \115// RUN: -ffixed-x5 \116// RUN: -ffixed-x6 \117// RUN: -ffixed-x7 \118// RUN: -ffixed-x9 \119// RUN: -ffixed-x10 \120// RUN: -ffixed-x11 \121// RUN: -ffixed-x12 \122// RUN: -ffixed-x13 \123// RUN: -ffixed-x14 \124// RUN: -ffixed-x15 \125// RUN: -ffixed-x18 \126// RUN: -ffixed-x20 \127// RUN: -ffixed-x21 \128// RUN: -ffixed-x22 \129// RUN: -ffixed-x23 \130// RUN: -ffixed-x24 \131// RUN: -ffixed-x25 \132// RUN: -ffixed-x26 \133// RUN: -ffixed-x27 \134// RUN: -ffixed-x28 \135// RUN: -### %s 2> %t136// RUN: FileCheck \137// RUN: --check-prefix=CHECK-FIXED-X1 \138// RUN: --check-prefix=CHECK-FIXED-X2 \139// RUN: --check-prefix=CHECK-FIXED-X3 \140// RUN: --check-prefix=CHECK-FIXED-X4 \141// RUN: --check-prefix=CHECK-FIXED-X5 \142// RUN: --check-prefix=CHECK-FIXED-X6 \143// RUN: --check-prefix=CHECK-FIXED-X7 \144// RUN: --check-prefix=CHECK-FIXED-X9 \145// RUN: --check-prefix=CHECK-FIXED-X10 \146// RUN: --check-prefix=CHECK-FIXED-X11 \147// RUN: --check-prefix=CHECK-FIXED-X12 \148// RUN: --check-prefix=CHECK-FIXED-X13 \149// RUN: --check-prefix=CHECK-FIXED-X14 \150// RUN: --check-prefix=CHECK-FIXED-X15 \151// RUN: --check-prefix=CHECK-FIXED-X18 \152// RUN: --check-prefix=CHECK-FIXED-X20 \153// RUN: --check-prefix=CHECK-FIXED-X21 \154// RUN: --check-prefix=CHECK-FIXED-X22 \155// RUN: --check-prefix=CHECK-FIXED-X23 \156// RUN: --check-prefix=CHECK-FIXED-X24 \157// RUN: --check-prefix=CHECK-FIXED-X25 \158// RUN: --check-prefix=CHECK-FIXED-X26 \159// RUN: --check-prefix=CHECK-FIXED-X27 \160// RUN: --check-prefix=CHECK-FIXED-X28 \161// RUN: < %t %s162