llvm/test/MC/AArch64/SVE/directive-cpu.s
raw| 1 | // RUN: llvm-mc -triple=aarch64 < %s | FileCheck %s |
| 2 | |
| 3 | .cpu generic+sve |
| 4 | ptrue p0.b, pow2 |
| 5 | // CHECK: ptrue p0.b, pow2 |
| 6 | |
| 7 | // Test that the implied +sve feature is also set from +sve2. |
| 8 | .cpu generic+sve2 |
| 9 | ptrue p0.b, pow2 |
| 10 | // CHECK: ptrue p0.b, pow2 |
| 11 | |
| 12 | // Check that setting +nosve2 does not imply +nosve |
| 13 | .cpu generic+sve2+nosve2 |
| 14 | ptrue p0.b, pow2 |
| 15 | // CHECK: ptrue p0.b, pow2 |