|
1 |
| -// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+fp-armv8 %s | FileCheck %s |
| 1 | +// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8a,+fp-armv8 %s | FileCheck %s |
2 | 2 | .globl _func
|
3 | 3 |
|
4 | 4 | // Check that the assembler can handle the documented syntax from the ARM ARM.
|
@@ -1694,21 +1694,27 @@ _func:
|
1694 | 1694 | // CHECK: svc #{{65535|0xffff}} // encoding: [0xe1,0xff,0x1f,0xd4]
|
1695 | 1695 |
|
1696 | 1696 | hvc #1
|
| 1697 | + smc #12000 |
1697 | 1698 | brk #12
|
1698 | 1699 | hlt #123
|
1699 | 1700 | // CHECK: hvc #{{1|0x1}} // encoding: [0x22,0x00,0x00,0xd4]
|
| 1701 | +// CHECK: smc #{{12000|0x2ee0}} // encoding: [0x03,0xdc,0x05,0xd4] |
1700 | 1702 | // CHECK: brk #{{12|0xc}} // encoding: [0x80,0x01,0x20,0xd4]
|
1701 | 1703 | // CHECK: hlt #{{123|0x7b}} // encoding: [0x60,0x0f,0x40,0xd4]
|
1702 | 1704 |
|
1703 | 1705 | dcps1 #42
|
1704 | 1706 | dcps2 #9
|
| 1707 | + dcps3 #1000 |
1705 | 1708 | // CHECK: dcps1 #{{42|0x2a}} // encoding: [0x41,0x05,0xa0,0xd4]
|
1706 | 1709 | // CHECK: dcps2 #{{9|0x9}} // encoding: [0x22,0x01,0xa0,0xd4]
|
| 1710 | +// CHECK: dcps3 #{{1000|0x3e8}} // encoding: [0x03,0x7d,0xa0,0xd4] |
1707 | 1711 |
|
1708 | 1712 | dcps1
|
1709 | 1713 | dcps2
|
| 1714 | + dcps3 |
1710 | 1715 | // CHECK: dcps1 // encoding: [0x01,0x00,0xa0,0xd4]
|
1711 | 1716 | // CHECK: dcps2 // encoding: [0x02,0x00,0xa0,0xd4]
|
| 1717 | +// CHECK: dcps3 // encoding: [0x03,0x00,0xa0,0xd4] |
1712 | 1718 |
|
1713 | 1719 | //------------------------------------------------------------------------------
|
1714 | 1720 | // Extract (immediate)
|
@@ -3779,11 +3785,13 @@ _func:
|
3779 | 3785 | msr HACR_EL2, x12
|
3780 | 3786 | msr MDCR_EL3, x12
|
3781 | 3787 | msr TTBR0_EL1, x12
|
| 3788 | + msr TTBR0_EL2, x12 |
3782 | 3789 | msr TTBR0_EL3, x12
|
3783 | 3790 | msr TTBR1_EL1, x12
|
3784 | 3791 | msr TCR_EL1, x12
|
3785 | 3792 | msr TCR_EL2, x12
|
3786 | 3793 | msr TCR_EL3, x12
|
| 3794 | + msr VTTBR_EL2, x12 |
3787 | 3795 | msr VTCR_EL2, x12
|
3788 | 3796 | msr DACR32_EL2, x12
|
3789 | 3797 | msr SPSR_EL1, x12
|
@@ -4031,11 +4039,13 @@ _func:
|
4031 | 4039 | // CHECK: msr {{hacr_el2|HACR_EL2}}, x12 // encoding: [0xec,0x11,0x1c,0xd5]
|
4032 | 4040 | // CHECK: msr {{mdcr_el3|MDCR_EL3}}, x12 // encoding: [0x2c,0x13,0x1e,0xd5]
|
4033 | 4041 | // CHECK: msr {{ttbr0_el1|TTBR0_EL1}}, x12 // encoding: [0x0c,0x20,0x18,0xd5]
|
| 4042 | +// CHECK: msr {{ttbr0_el2|TTBR0_EL2}}, x12 // encoding: [0x0c,0x20,0x1c,0xd5] |
4034 | 4043 | // CHECK: msr {{ttbr0_el3|TTBR0_EL3}}, x12 // encoding: [0x0c,0x20,0x1e,0xd5]
|
4035 | 4044 | // CHECK: msr {{ttbr1_el1|TTBR1_EL1}}, x12 // encoding: [0x2c,0x20,0x18,0xd5]
|
4036 | 4045 | // CHECK: msr {{tcr_el1|TCR_EL1}}, x12 // encoding: [0x4c,0x20,0x18,0xd5]
|
4037 | 4046 | // CHECK: msr {{tcr_el2|TCR_EL2}}, x12 // encoding: [0x4c,0x20,0x1c,0xd5]
|
4038 | 4047 | // CHECK: msr {{tcr_el3|TCR_EL3}}, x12 // encoding: [0x4c,0x20,0x1e,0xd5]
|
| 4048 | +// CHECK: msr {{vttbr_el2|VTTBR_EL2}}, x12 // encoding: [0x0c,0x21,0x1c,0xd5] |
4039 | 4049 | // CHECK: msr {{vtcr_el2|VTCR_EL2}}, x12 // encoding: [0x4c,0x21,0x1c,0xd5]
|
4040 | 4050 | // CHECK: msr {{dacr32_el2|DACR32_EL2}}, x12 // encoding: [0x0c,0x30,0x1c,0xd5]
|
4041 | 4051 | // CHECK: msr {{spsr_el1|SPSR_EL1}}, x12 // encoding: [0x0c,0x40,0x18,0xd5]
|
@@ -4324,11 +4334,13 @@ _func:
|
4324 | 4334 | mrs x9, HACR_EL2
|
4325 | 4335 | mrs x9, MDCR_EL3
|
4326 | 4336 | mrs x9, TTBR0_EL1
|
| 4337 | + mrs x9, TTBR0_EL2 |
4327 | 4338 | mrs x9, TTBR0_EL3
|
4328 | 4339 | mrs x9, TTBR1_EL1
|
4329 | 4340 | mrs x9, TCR_EL1
|
4330 | 4341 | mrs x9, TCR_EL2
|
4331 | 4342 | mrs x9, TCR_EL3
|
| 4343 | + mrs x9, VTTBR_EL2 |
4332 | 4344 | mrs x9, VTCR_EL2
|
4333 | 4345 | mrs x9, DACR32_EL2
|
4334 | 4346 | mrs x9, SPSR_EL1
|
@@ -4625,11 +4637,13 @@ _func:
|
4625 | 4637 | // CHECK: mrs x9, {{hacr_el2|HACR_EL2}} // encoding: [0xe9,0x11,0x3c,0xd5]
|
4626 | 4638 | // CHECK: mrs x9, {{mdcr_el3|MDCR_EL3}} // encoding: [0x29,0x13,0x3e,0xd5]
|
4627 | 4639 | // CHECK: mrs x9, {{ttbr0_el1|TTBR0_EL1}} // encoding: [0x09,0x20,0x38,0xd5]
|
| 4640 | +// CHECK: mrs x9, {{ttbr0_el2|TTBR0_EL2}} // encoding: [0x09,0x20,0x3c,0xd5] |
4628 | 4641 | // CHECK: mrs x9, {{ttbr0_el3|TTBR0_EL3}} // encoding: [0x09,0x20,0x3e,0xd5]
|
4629 | 4642 | // CHECK: mrs x9, {{ttbr1_el1|TTBR1_EL1}} // encoding: [0x29,0x20,0x38,0xd5]
|
4630 | 4643 | // CHECK: mrs x9, {{tcr_el1|TCR_EL1}} // encoding: [0x49,0x20,0x38,0xd5]
|
4631 | 4644 | // CHECK: mrs x9, {{tcr_el2|TCR_EL2}} // encoding: [0x49,0x20,0x3c,0xd5]
|
4632 | 4645 | // CHECK: mrs x9, {{tcr_el3|TCR_EL3}} // encoding: [0x49,0x20,0x3e,0xd5]
|
| 4646 | +// CHECK: mrs x9, {{vttbr_el2|VTTBR_EL2}} // encoding: [0x09,0x21,0x3c,0xd5] |
4633 | 4647 | // CHECK: mrs x9, {{vtcr_el2|VTCR_EL2}} // encoding: [0x49,0x21,0x3c,0xd5]
|
4634 | 4648 | // CHECK: mrs x9, {{dacr32_el2|DACR32_EL2}} // encoding: [0x09,0x30,0x3c,0xd5]
|
4635 | 4649 | // CHECK: mrs x9, {{spsr_el1|SPSR_EL1}} // encoding: [0x09,0x40,0x38,0xd5]
|
|
0 commit comments