1 // RUN: %clang -target aarch64-none-gnu -ffixed-x1 -### %s 2> %t 2 // RUN: FileCheck --check-prefix=CHECK-FIXED-X1 < %t %s 3 // CHECK-FIXED-X1: "-target-feature" "+reserve-x1" 4 5 // RUN: %clang -target aarch64-none-gnu -ffixed-x2 -### %s 2> %t 6 // RUN: FileCheck --check-prefix=CHECK-FIXED-X2 < %t %s 7 // CHECK-FIXED-X2: "-target-feature" "+reserve-x2" 8 9 // RUN: %clang -target aarch64-none-gnu -ffixed-x3 -### %s 2> %t 10 // RUN: FileCheck --check-prefix=CHECK-FIXED-X3 < %t %s 11 // CHECK-FIXED-X3: "-target-feature" "+reserve-x3" 12 13 // RUN: %clang -target aarch64-none-gnu -ffixed-x4 -### %s 2> %t 14 // RUN: FileCheck --check-prefix=CHECK-FIXED-X4 < %t %s 15 // CHECK-FIXED-X4: "-target-feature" "+reserve-x4" 16 17 // RUN: %clang -target aarch64-none-gnu -ffixed-x5 -### %s 2> %t 18 // RUN: FileCheck --check-prefix=CHECK-FIXED-X5 < %t %s 19 // CHECK-FIXED-X5: "-target-feature" "+reserve-x5" 20 21 // RUN: %clang -target aarch64-none-gnu -ffixed-x6 -### %s 2> %t 22 // RUN: FileCheck --check-prefix=CHECK-FIXED-X6 < %t %s 23 // CHECK-FIXED-X6: "-target-feature" "+reserve-x6" 24 25 // RUN: %clang -target aarch64-none-gnu -ffixed-x7 -### %s 2> %t 26 // RUN: FileCheck --check-prefix=CHECK-FIXED-X7 < %t %s 27 // CHECK-FIXED-X7: "-target-feature" "+reserve-x7" 28 29 // RUN: %clang -target aarch64-none-gnu -ffixed-x9 -### %s 2> %t 30 // RUN: FileCheck --check-prefix=CHECK-FIXED-X9 < %t %s 31 // CHECK-FIXED-X9: "-target-feature" "+reserve-x9" 32 33 // RUN: %clang -target aarch64-none-gnu -ffixed-x10 -### %s 2> %t 34 // RUN: FileCheck --check-prefix=CHECK-FIXED-X10 < %t %s 35 // CHECK-FIXED-X10: "-target-feature" "+reserve-x10" 36 37 // RUN: %clang -target aarch64-none-gnu -ffixed-x11 -### %s 2> %t 38 // RUN: FileCheck --check-prefix=CHECK-FIXED-X11 < %t %s 39 // CHECK-FIXED-X11: "-target-feature" "+reserve-x11" 40 41 // RUN: %clang -target aarch64-none-gnu -ffixed-x12 -### %s 2> %t 42 // RUN: FileCheck --check-prefix=CHECK-FIXED-X12 < %t %s 43 // CHECK-FIXED-X12: "-target-feature" "+reserve-x12" 44 45 // RUN: %clang -target aarch64-none-gnu -ffixed-x13 -### %s 2> %t 46 // RUN: FileCheck --check-prefix=CHECK-FIXED-X13 < %t %s 47 // CHECK-FIXED-X13: "-target-feature" "+reserve-x13" 48 49 // RUN: %clang -target aarch64-none-gnu -ffixed-x14 -### %s 2> %t 50 // RUN: FileCheck --check-prefix=CHECK-FIXED-X14 < %t %s 51 // CHECK-FIXED-X14: "-target-feature" "+reserve-x14" 52 53 // RUN: %clang -target aarch64-none-gnu -ffixed-x15 -### %s 2> %t 54 // RUN: FileCheck --check-prefix=CHECK-FIXED-X15 < %t %s 55 // CHECK-FIXED-X15: "-target-feature" "+reserve-x15" 56 57 // RUN: %clang -target aarch64-none-gnu -ffixed-x18 -### %s 2> %t 58 // RUN: FileCheck --check-prefix=CHECK-FIXED-X18 < %t %s 59 // CHECK-FIXED-X18: "-target-feature" "+reserve-x18" 60 61 // RUN: %clang -target aarch64-none-gnu -ffixed-x20 -### %s 2> %t 62 // RUN: FileCheck --check-prefix=CHECK-FIXED-X20 < %t %s 63 // CHECK-FIXED-X20: "-target-feature" "+reserve-x20" 64 65 // RUN: %clang -target aarch64-none-gnu -ffixed-x21 -### %s 2> %t 66 // RUN: FileCheck --check-prefix=CHECK-FIXED-X21 < %t %s 67 // CHECK-FIXED-X21: "-target-feature" "+reserve-x21" 68 69 // RUN: %clang -target aarch64-none-gnu -ffixed-x22 -### %s 2> %t 70 // RUN: FileCheck --check-prefix=CHECK-FIXED-X22 < %t %s 71 // CHECK-FIXED-X22: "-target-feature" "+reserve-x22" 72 73 // RUN: %clang -target aarch64-none-gnu -ffixed-x23 -### %s 2> %t 74 // RUN: FileCheck --check-prefix=CHECK-FIXED-X23 < %t %s 75 // CHECK-FIXED-X23: "-target-feature" "+reserve-x23" 76 77 // RUN: %clang -target aarch64-none-gnu -ffixed-x24 -### %s 2> %t 78 // RUN: FileCheck --check-prefix=CHECK-FIXED-X24 < %t %s 79 // CHECK-FIXED-X24: "-target-feature" "+reserve-x24" 80 81 // RUN: %clang -target aarch64-none-gnu -ffixed-x25 -### %s 2> %t 82 // RUN: FileCheck --check-prefix=CHECK-FIXED-X25 < %t %s 83 // CHECK-FIXED-X25: "-target-feature" "+reserve-x25" 84 85 // RUN: %clang -target aarch64-none-gnu -ffixed-x26 -### %s 2> %t 86 // RUN: FileCheck --check-prefix=CHECK-FIXED-X26 < %t %s 87 // CHECK-FIXED-X26: "-target-feature" "+reserve-x26" 88 89 // RUN: %clang -target aarch64-none-gnu -ffixed-x27 -### %s 2> %t 90 // RUN: FileCheck --check-prefix=CHECK-FIXED-X27 < %t %s 91 // CHECK-FIXED-X27: "-target-feature" "+reserve-x27" 92 93 // RUN: %clang -target aarch64-none-gnu -ffixed-x28 -### %s 2> %t 94 // RUN: FileCheck --check-prefix=CHECK-FIXED-X28 < %t %s 95 // CHECK-FIXED-X28: "-target-feature" "+reserve-x28" 96 97 // RUN: %clang -target aarch64-none-gnu -ffixed-x30 -### %s 2> %t 98 // RUN: FileCheck --check-prefix=CHECK-FIXED-X30 < %t %s 99 // CHECK-FIXED-X30: "-target-feature" "+reserve-x30" 100 101 // Test multiple of reserve-x# options together. 102 // RUN: %clang -target aarch64-none-gnu \ 103 // RUN: -ffixed-x1 \ 104 // RUN: -ffixed-x2 \ 105 // RUN: -ffixed-x18 \ 106 // RUN: -### %s 2> %t 107 // RUN: FileCheck \ 108 // RUN: --check-prefix=CHECK-FIXED-X1 \ 109 // RUN: --check-prefix=CHECK-FIXED-X2 \ 110 // RUN: --check-prefix=CHECK-FIXED-X18 \ 111 // RUN: < %t %s 112 113 // Test all reserve-x# options together. 114 // RUN: %clang -target aarch64-none-gnu \ 115 // RUN: -ffixed-x1 \ 116 // RUN: -ffixed-x2 \ 117 // RUN: -ffixed-x3 \ 118 // RUN: -ffixed-x4 \ 119 // RUN: -ffixed-x5 \ 120 // RUN: -ffixed-x6 \ 121 // RUN: -ffixed-x7 \ 122 // RUN: -ffixed-x9 \ 123 // RUN: -ffixed-x10 \ 124 // RUN: -ffixed-x11 \ 125 // RUN: -ffixed-x12 \ 126 // RUN: -ffixed-x13 \ 127 // RUN: -ffixed-x14 \ 128 // RUN: -ffixed-x15 \ 129 // RUN: -ffixed-x18 \ 130 // RUN: -ffixed-x20 \ 131 // RUN: -ffixed-x21 \ 132 // RUN: -ffixed-x22 \ 133 // RUN: -ffixed-x23 \ 134 // RUN: -ffixed-x24 \ 135 // RUN: -ffixed-x25 \ 136 // RUN: -ffixed-x26 \ 137 // RUN: -ffixed-x27 \ 138 // RUN: -ffixed-x28 \ 139 // RUN: -### %s 2> %t 140 // RUN: FileCheck \ 141 // RUN: --check-prefix=CHECK-FIXED-X1 \ 142 // RUN: --check-prefix=CHECK-FIXED-X2 \ 143 // RUN: --check-prefix=CHECK-FIXED-X3 \ 144 // RUN: --check-prefix=CHECK-FIXED-X4 \ 145 // RUN: --check-prefix=CHECK-FIXED-X5 \ 146 // RUN: --check-prefix=CHECK-FIXED-X6 \ 147 // RUN: --check-prefix=CHECK-FIXED-X7 \ 148 // RUN: --check-prefix=CHECK-FIXED-X9 \ 149 // RUN: --check-prefix=CHECK-FIXED-X10 \ 150 // RUN: --check-prefix=CHECK-FIXED-X11 \ 151 // RUN: --check-prefix=CHECK-FIXED-X12 \ 152 // RUN: --check-prefix=CHECK-FIXED-X13 \ 153 // RUN: --check-prefix=CHECK-FIXED-X14 \ 154 // RUN: --check-prefix=CHECK-FIXED-X15 \ 155 // RUN: --check-prefix=CHECK-FIXED-X18 \ 156 // RUN: --check-prefix=CHECK-FIXED-X20 \ 157 // RUN: --check-prefix=CHECK-FIXED-X21 \ 158 // RUN: --check-prefix=CHECK-FIXED-X22 \ 159 // RUN: --check-prefix=CHECK-FIXED-X23 \ 160 // RUN: --check-prefix=CHECK-FIXED-X24 \ 161 // RUN: --check-prefix=CHECK-FIXED-X25 \ 162 // RUN: --check-prefix=CHECK-FIXED-X26 \ 163 // RUN: --check-prefix=CHECK-FIXED-X27 \ 164 // RUN: --check-prefix=CHECK-FIXED-X28 \ 165 // RUN: < %t %s 166