Evgeniy Stepanov | a745155 | 2012-01-11 12:36:39 +0000 | [diff] [blame] | 1 | // Test that different values of -mfpu pick correct ARM FPU target-feature(s). |
| 2 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -target arm-linux-eabi %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | a745155 | 2012-01-11 12:36:39 +0000 | [diff] [blame] | 4 | // RUN: | FileCheck --check-prefix=CHECK-DEFAULT %s |
| 5 | // CHECK-DEFAULT-NOT: "-target-feature" "+vfp2" |
| 6 | // CHECK-DEFAULT-NOT: "-target-feature" "+vfp3" |
| 7 | // CHECK-DEFAULT-NOT: "-target-feature" "+d16" |
| 8 | // CHECK-DEFAULT-NOT: "-target-feature" "+neon" |
| 9 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 10 | // RUN: %clang -target arm-linux-eabi -mfpu=fpa %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 11 | // RUN: | FileCheck --check-prefix=CHECK-FPA %s |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 12 | // RUN: %clang -target arm-linux-eabi -mfpu=fpe2 %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 13 | // RUN: | FileCheck --check-prefix=CHECK-FPA %s |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 14 | // RUN: %clang -target arm-linux-eabi -mfpu=fpe3 %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 15 | // RUN: | FileCheck --check-prefix=CHECK-FPA %s |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 16 | // RUN: %clang -target arm-linux-eabi -mfpu=maverick %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 17 | // RUN: | FileCheck --check-prefix=CHECK-FPA %s |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 18 | // CHECK-FPA: error: {{.*}} does not support '-mfpu={{fpa|fpe|fpe2|fpe3|maverick}}' |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 19 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 20 | // RUN: %clang -target arm-linux-eabi -mfpu=vfp %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 21 | // RUN: | FileCheck --check-prefix=CHECK-VFP %s |
| 22 | // CHECK-VFP: "-target-feature" "+vfp2" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 23 | // CHECK-VFP: "-target-feature" "-vfp3" |
| 24 | // CHECK-VFP: "-target-feature" "-vfp4" |
| 25 | // CHECK-VFP: "-target-feature" "-fp-armv8" |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 26 | // CHECK-VFP: "-target-feature" "-neon" |
| 27 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 28 | // RUN: %clang -target arm-linux-eabi -mfpu=vfp3 %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 29 | // RUN: | FileCheck --check-prefix=CHECK-VFP3 %s |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 30 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3 %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 31 | // RUN: | FileCheck --check-prefix=CHECK-VFP3 %s |
| 32 | // CHECK-VFP3: "-target-feature" "+vfp3" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 33 | // CHECK-VFP3: "-target-feature" "-vfp4" |
| 34 | // CHECK-VFP3: "-target-feature" "-fp-armv8" |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 35 | // CHECK-VFP3: "-target-feature" "-neon" |
| 36 | |
Javed Absar | 8f16175 | 2015-06-29 09:30:19 +0000 | [diff] [blame] | 37 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-fp16 %s -### -o %t.o 2>&1 \ |
| 38 | // RUN: | FileCheck --check-prefix=CHECK-VFP3-FP16 %s |
| 39 | // CHECK-VFP3-FP16: "-target-feature" "-fp-only-sp" |
| 40 | // CHECK-VFP3-FP16: "-target-feature" "-d16" |
| 41 | // CHECK-VFP3-FP16: "-target-feature" "+vfp3" |
| 42 | // CHECK-VFP3-FP16: "-target-feature" "+fp16" |
| 43 | // CHECK-VFP3-FP16: "-target-feature" "-vfp4" |
| 44 | // CHECK-VFP3-FP16: "-target-feature" "-fp-armv8" |
| 45 | // CHECK-VFP3-FP16: "-target-feature" "-neon" |
| 46 | // CHECK-VFP3-FP16: "-target-feature" "-crypto" |
| 47 | |
Richard Barton | 09b60b2 | 2014-11-28 20:39:54 +0000 | [diff] [blame] | 48 | // RUN: %clang -target arm-linux-eabi -mfpu=vfp3-d16 %s -### -o %t.o 2>&1 \ |
| 49 | // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s |
| 50 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16 %s -### -o %t.o 2>&1 \ |
| 51 | // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 52 | // CHECK-VFP3-D16: "-target-feature" "-fp-only-sp" |
Richard Barton | 09b60b2 | 2014-11-28 20:39:54 +0000 | [diff] [blame] | 53 | // CHECK-VFP3-D16: "-target-feature" "+d16" |
Renato Golin | 0600e1e | 2015-05-08 21:04:50 +0000 | [diff] [blame] | 54 | // CHECK-VFP3-D16: "-target-feature" "+vfp3" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 55 | // CHECK-VFP3-D16: "-target-feature" "-vfp4" |
| 56 | // CHECK-VFP3-D16: "-target-feature" "-fp-armv8" |
Richard Barton | 09b60b2 | 2014-11-28 20:39:54 +0000 | [diff] [blame] | 57 | // CHECK-VFP3-D16: "-target-feature" "-neon" |
| 58 | |
Javed Absar | 8f16175 | 2015-06-29 09:30:19 +0000 | [diff] [blame] | 59 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16-fp16 %s -### -o %t.o 2>&1 \ |
| 60 | // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16-FP16 %s |
| 61 | // CHECK-VFP3-D16-FP16: "-target-feature" "-fp-only-sp" |
| 62 | // CHECK-VFP3-D16-FP16: "-target-feature" "+d16" |
| 63 | // CHECK-VFP3-D16-FP16: "-target-feature" "+vfp3" |
| 64 | // CHECK-VFP3-D16-FP16: "-target-feature" "+fp16" |
| 65 | // CHECK-VFP3-D16-FP16: "-target-feature" "-vfp4" |
| 66 | // CHECK-VFP3-D16-FP16: "-target-feature" "-fp-armv8" |
| 67 | // CHECK-VFP3-D16-FP16: "-target-feature" "-neon" |
| 68 | // CHECK-VFP3-D16-FP16: "-target-feature" "-crypto" |
| 69 | |
| 70 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd %s -### -o %t.o 2>&1 \ |
| 71 | // RUN: | FileCheck --check-prefix=CHECK-VFP3XD %s |
| 72 | // CHECK-VFP3XD: "-target-feature" "+fp-only-sp" |
| 73 | // CHECK-VFP3XD: "-target-feature" "+d16" |
| 74 | // CHECK-VFP3XD: "-target-feature" "+vfp3" |
| 75 | // CHECK-VFP3XD: "-target-feature" "-fp16" |
| 76 | // CHECK-VFP3XD: "-target-feature" "-vfp4" |
| 77 | // CHECK-VFP3XD: "-target-feature" "-fp-armv8" |
| 78 | // CHECK-VFP3XD: "-target-feature" "-neon" |
| 79 | // CHECK-VFP3XD: "-target-feature" "-crypto" |
| 80 | |
| 81 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd-fp16 %s -### -o %t.o 2>&1 \ |
| 82 | // RUN: | FileCheck --check-prefix=CHECK-VFP3XD-FP16 %s |
| 83 | // CHECK-VFP3XD-FP16: "-target-feature" "+fp-only-sp" |
| 84 | // CHECK-VFP3XD-FP16: "-target-feature" "+d16" |
| 85 | // CHECK-VFP3XD-FP16: "-target-feature" "+vfp3" |
| 86 | // CHECK-VFP3XD-FP16: "-target-feature" "+fp16" |
| 87 | // CHECK-VFP3XD-FP16: "-target-feature" "-vfp4" |
| 88 | // CHECK-VFP3XD-FP16: "-target-feature" "-fp-armv8" |
| 89 | // CHECK-VFP3XD-FP16: "-target-feature" "-neon" |
| 90 | // CHECK-VFP3XD-FP16: "-target-feature" "-crypto" |
| 91 | |
Artyom Skrobov | 53b000a8 | 2013-11-21 14:04:38 +0000 | [diff] [blame] | 92 | // RUN: %clang -target arm-linux-eabi -mfpu=vfp4 %s -### -o %t.o 2>&1 \ |
| 93 | // RUN: | FileCheck --check-prefix=CHECK-VFP4 %s |
| 94 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv4 %s -### -o %t.o 2>&1 \ |
| 95 | // RUN: | FileCheck --check-prefix=CHECK-VFP4 %s |
| 96 | // CHECK-VFP4: "-target-feature" "+vfp4" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 97 | // CHECK-VFP4: "-target-feature" "-fp-armv8" |
Artyom Skrobov | 53b000a8 | 2013-11-21 14:04:38 +0000 | [diff] [blame] | 98 | // CHECK-VFP4: "-target-feature" "-neon" |
| 99 | |
| 100 | // RUN: %clang -target arm-linux-eabi -mfpu=vfp4-d16 %s -### -o %t.o 2>&1 \ |
| 101 | // RUN: | FileCheck --check-prefix=CHECK-VFP4-D16 %s |
| 102 | // RUN: %clang -target arm-linux-eabi -mfpu=vfpv4-d16 %s -### -o %t.o 2>&1 \ |
| 103 | // RUN: | FileCheck --check-prefix=CHECK-VFP4-D16 %s |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 104 | // CHECK-VFP4-D16: "-target-feature" "-fp-only-sp" |
Artyom Skrobov | 53b000a8 | 2013-11-21 14:04:38 +0000 | [diff] [blame] | 105 | // CHECK-VFP4-D16: "-target-feature" "+d16" |
Renato Golin | 0600e1e | 2015-05-08 21:04:50 +0000 | [diff] [blame] | 106 | // CHECK-VFP4-D16: "-target-feature" "+vfp4" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 107 | // CHECK-VFP4-D16: "-target-feature" "-fp-armv8" |
Artyom Skrobov | 53b000a8 | 2013-11-21 14:04:38 +0000 | [diff] [blame] | 108 | // CHECK-VFP4-D16: "-target-feature" "-neon" |
| 109 | |
Oliver Stannard | 96601ca | 2014-02-21 10:39:15 +0000 | [diff] [blame] | 110 | // RUN: %clang -target arm-linux-eabi -mfpu=fp4-sp-d16 %s -### -o %t.o 2>&1 \ |
| 111 | // RUN: | FileCheck --check-prefix=CHECK-FP4-SP-D16 %s |
| 112 | // RUN: %clang -target arm-linux-eabi -mfpu=fpv4-sp-d16 %s -### -o %t.o 2>&1 \ |
| 113 | // RUN: | FileCheck --check-prefix=CHECK-FP4-SP-D16 %s |
Oliver Stannard | 96601ca | 2014-02-21 10:39:15 +0000 | [diff] [blame] | 114 | // CHECK-FP4-SP-D16: "-target-feature" "+fp-only-sp" |
Renato Golin | 0600e1e | 2015-05-08 21:04:50 +0000 | [diff] [blame] | 115 | // CHECK-FP4-SP-D16: "-target-feature" "+d16" |
| 116 | // CHECK-FP4-SP-D16: "-target-feature" "+vfp4" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 117 | // CHECK-FP4-SP-D16: "-target-feature" "-fp-armv8" |
Oliver Stannard | 96601ca | 2014-02-21 10:39:15 +0000 | [diff] [blame] | 118 | // CHECK-FP4-SP-D16: "-target-feature" "-neon" |
Artyom Skrobov | 53b000a8 | 2013-11-21 14:04:38 +0000 | [diff] [blame] | 119 | |
Oliver Stannard | bfd3ea3 | 2014-10-01 09:03:02 +0000 | [diff] [blame] | 120 | // RUN: %clang -target arm-linux-eabi -mfpu=fp5-sp-d16 %s -### -o %t.o 2>&1 \ |
| 121 | // RUN: | FileCheck --check-prefix=CHECK-FP5-SP-D16 %s |
| 122 | // RUN: %clang -target arm-linux-eabi -mfpu=fpv5-sp-d16 %s -### -o %t.o 2>&1 \ |
| 123 | // RUN: | FileCheck --check-prefix=CHECK-FP5-SP-D16 %s |
Oliver Stannard | bfd3ea3 | 2014-10-01 09:03:02 +0000 | [diff] [blame] | 124 | // CHECK-FP5-SP-D16: "-target-feature" "+fp-only-sp" |
| 125 | // CHECK-FP5-SP-D16: "-target-feature" "+d16" |
Renato Golin | 0600e1e | 2015-05-08 21:04:50 +0000 | [diff] [blame] | 126 | // CHECK-FP5-SP-D16: "-target-feature" "+fp-armv8" |
Oliver Stannard | bfd3ea3 | 2014-10-01 09:03:02 +0000 | [diff] [blame] | 127 | // CHECK-FP5-SP-D16: "-target-feature" "-neon" |
| 128 | // CHECK-FP5-SP-D16: "-target-feature" "-crypto" |
| 129 | |
| 130 | // RUN: %clang -target arm-linux-eabi -mfpu=fp5-dp-d16 %s -### -o %t.o 2>&1 \ |
| 131 | // RUN: | FileCheck --check-prefix=CHECK-FP5-DP-D16 %s |
| 132 | // RUN: %clang -target arm-linux-eabi -mfpu=fpv5-dp-d16 %s -### -o %t.o 2>&1 \ |
| 133 | // RUN: | FileCheck --check-prefix=CHECK-FP5-DP-D16 %s |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 134 | // CHECK-FP5-DP-D16: "-target-feature" "-fp-only-sp" |
Oliver Stannard | bfd3ea3 | 2014-10-01 09:03:02 +0000 | [diff] [blame] | 135 | // CHECK-FP5-DP-D16: "-target-feature" "+d16" |
Renato Golin | 0600e1e | 2015-05-08 21:04:50 +0000 | [diff] [blame] | 136 | // CHECK-FP5-DP-D16: "-target-feature" "+fp-armv8" |
Oliver Stannard | bfd3ea3 | 2014-10-01 09:03:02 +0000 | [diff] [blame] | 137 | // CHECK-FP5-DP-D16: "-target-feature" "-neon" |
| 138 | // CHECK-FP5-DP-D16: "-target-feature" "-crypto" |
| 139 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 140 | // RUN: %clang -target arm-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | 48af2a9 | 2012-01-11 11:21:31 +0000 | [diff] [blame] | 141 | // RUN: | FileCheck --check-prefix=CHECK-NEON %s |
| 142 | // CHECK-NEON: "-target-feature" "+neon" |
| 143 | |
Javed Absar | 8f16175 | 2015-06-29 09:30:19 +0000 | [diff] [blame] | 144 | // RUN: %clang -target arm-linux-eabi -mfpu=neon-fp16 %s -### -o %t.o 2>&1 \ |
| 145 | // RUN: | FileCheck --check-prefix=CHECK-NEON-FP16 %s |
| 146 | // CHECK-NEON-FP16: "-target-feature" "-fp-only-sp" |
| 147 | // CHECK-NEON-FP16: "-target-feature" "-d16" |
| 148 | // CHECK-NEON-FP16: "-target-feature" "+vfp3" |
| 149 | // CHECK-NEON-FP16: "-target-feature" "+fp16" |
| 150 | // CHECK-NEON-FP16: "-target-feature" "-vfp4" |
| 151 | // CHECK-NEON-FP16: "-target-feature" "-fp-armv8" |
| 152 | // CHECK-NEON-FP16: "-target-feature" "+neon" |
| 153 | // CHECK-NEON-FP16: "-target-feature" "-crypto" |
| 154 | |
Richard Barton | 3b0dcc1 | 2014-11-28 20:39:59 +0000 | [diff] [blame] | 155 | // RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv3 %s -### -o %t.o 2>&1 \ |
| 156 | // RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV3 %s |
Richard Barton | 3b0dcc1 | 2014-11-28 20:39:59 +0000 | [diff] [blame] | 157 | // CHECK-NEON-VFPV3: "-target-feature" "+neon" |
| 158 | |
Richard Barton | 09b60b2 | 2014-11-28 20:39:54 +0000 | [diff] [blame] | 159 | // RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv4 %s -### -o %t.o 2>&1 \ |
| 160 | // RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV4 %s |
Richard Barton | 2c5a897 | 2014-12-18 16:31:18 +0000 | [diff] [blame] | 161 | // CHECK-NEON-VFPV4: "-target-feature" "+vfp4" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 162 | // CHECK-NEON-VFPV4: "-target-feature" "+neon" |
Richard Barton | 09b60b2 | 2014-11-28 20:39:54 +0000 | [diff] [blame] | 163 | |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 164 | // RUN: %clang -target arm-linux-eabi -msoft-float %s -### -o %t.o 2>&1 \ |
Evgeniy Stepanov | a745155 | 2012-01-11 12:36:39 +0000 | [diff] [blame] | 165 | // RUN: | FileCheck --check-prefix=CHECK-SOFT-FLOAT %s |
| 166 | // CHECK-SOFT-FLOAT: "-target-feature" "-neon" |
Joey Gouly | 7db275b | 2013-06-27 13:19:54 +0000 | [diff] [blame] | 167 | |
Amara Emerson | ecbe18e | 2014-02-12 10:22:35 +0000 | [diff] [blame] | 168 | // RUN: %clang -target armv8 %s -### 2>&1 \ |
| 169 | // RUN: | FileCheck --check-prefix=CHECK-ARMV8-DEFAULT-SOFT-FP %s |
| 170 | // CHECK-ARMV8-DEFAULT-SOFT-FP: "-target-feature" "-neon" |
| 171 | // CHECK-ARMV8-DEFAULT-SOFT-FP: "-target-feature" "-crypto" |
| 172 | |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 173 | // RUN: %clang -target armv8 -mfpu=fp-armv8 %s -### 2>&1 \ |
| 174 | // RUN: | FileCheck --check-prefix=CHECK-ARMV8-SOFT-FLOAT %s |
| 175 | // CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "+fp-armv8" |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 176 | // CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "-neon" |
Amara Emerson | ecbe18e | 2014-02-12 10:22:35 +0000 | [diff] [blame] | 177 | // CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "-crypto" |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 178 | |
Joey Gouly | 7db275b | 2013-06-27 13:19:54 +0000 | [diff] [blame] | 179 | // RUN: %clang -target armv8-linux-gnueabihf -mfpu=fp-armv8 %s -### 2>&1 \ |
| 180 | // RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s |
Bernard Ogden | 18b5701 | 2013-10-29 09:47:51 +0000 | [diff] [blame] | 181 | // CHECK-FP-ARMV8-NOT: "-target-feature" "+neon" |
Joey Gouly | be8c273 | 2013-09-13 13:48:33 +0000 | [diff] [blame] | 182 | // CHECK-FP-ARMV8: "-target-feature" "+fp-armv8" |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 183 | // CHECK-FP-ARMV8: "-target-feature" "-neon" |
| 184 | // CHECK-FP-ARMV8: "-target-feature" "-crypto" |
Joey Gouly | 7db275b | 2013-06-27 13:19:54 +0000 | [diff] [blame] | 185 | |
| 186 | // RUN: %clang -target armv8-linux-gnueabihf -mfpu=neon-fp-armv8 %s -### 2>&1 \ |
| 187 | // RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s |
Joey Gouly | be8c273 | 2013-09-13 13:48:33 +0000 | [diff] [blame] | 188 | // CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" |
Joey Gouly | 7db275b | 2013-06-27 13:19:54 +0000 | [diff] [blame] | 189 | // CHECK-NEON-FP-ARMV8: "-target-feature" "+neon" |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 190 | // CHECK-NEON-FP-ARMV8: "-target-feature" "-crypto" |
Tim Northover | 244950d | 2013-08-20 13:19:43 +0000 | [diff] [blame] | 191 | |
Amara Emerson | fc362c6 | 2013-09-19 13:54:03 +0000 | [diff] [blame] | 192 | // RUN: %clang -target armv8-linux-gnueabihf -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \ |
| 193 | // RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s |
Amara Emerson | fc362c6 | 2013-09-19 13:54:03 +0000 | [diff] [blame] | 194 | // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" |
Bernard Ogden | da13af3 | 2013-10-24 18:32:51 +0000 | [diff] [blame] | 195 | // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto" |
Amara Emerson | fc362c6 | 2013-09-19 13:54:03 +0000 | [diff] [blame] | 196 | |
Amara Emerson | 4cdb87b | 2013-10-01 10:20:54 +0000 | [diff] [blame] | 197 | // RUN: %clang -target armv8-linux-gnueabi -mfpu=none %s -### 2>&1 \ |
| 198 | // RUN: | FileCheck --check-prefix=CHECK-NO-FP %s |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 199 | // CHECK-NO-FP: "-target-feature" "-fp-only-sp" |
| 200 | // CHECK-NO-FP: "-target-feature" "-d16" |
Amara Emerson | 4cdb87b | 2013-10-01 10:20:54 +0000 | [diff] [blame] | 201 | // CHECK-NO-FP: "-target-feature" "-vfp2" |
| 202 | // CHECK-NO-FP: "-target-feature" "-vfp3" |
| 203 | // CHECK-NO-FP: "-target-feature" "-vfp4" |
| 204 | // CHECK-NO-FP: "-target-feature" "-fp-armv8" |
Asiri Rathnayake | 9e3c7cb | 2014-10-03 09:11:41 +0000 | [diff] [blame] | 205 | // CHECK-NO-FP: "-target-feature" "-neon" |
John Brawn | 5a589ad | 2015-06-05 13:34:11 +0000 | [diff] [blame] | 206 | // CHECK-NO-FP: "-target-feature" "-crypto" |
Amara Emerson | 4cdb87b | 2013-10-01 10:20:54 +0000 | [diff] [blame] | 207 | |
Tim Northover | 244950d | 2013-08-20 13:19:43 +0000 | [diff] [blame] | 208 | // RUN: %clang -target arm-linux-gnueabihf %s -### 2>&1 \ |
| 209 | // RUN: | FileCheck --check-prefix=CHECK-HF %s |
Renato Golin | e11531f | 2015-03-17 11:55:43 +0000 | [diff] [blame] | 210 | // CHECK-HF: "-target-cpu" "arm1176jzf-s" |
Rafael Espindola | 9c6fb0f | 2013-11-23 14:36:40 +0000 | [diff] [blame] | 211 | |
| 212 | // RUN: %clang -target armv7-apple-darwin -x assembler %s -### -c 2>&1 \ |
| 213 | // RUN: | FileCheck --check-prefix=ASM %s |
| 214 | // ASM-NOT: -target-feature |