[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / tme.s
blobcd472741276496b2b98e43b6c346718c9e434587
1 // Tests for transaction memory extension instructions
2 //
3 // RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+tme < %s | FileCheck %s
4 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-tme < %s 2>&1 | FileCheck %s --check-prefix=NOTME
6 tstart x3
7 ttest x4
8 tcommit
9 tcancel #0x1234
11 // CHECK: tstart x3 // encoding: [0x63,0x30,0x23,0xd5]
12 // CHECK: ttest x4 // encoding: [0x64,0x31,0x23,0xd5]
13 // CHECK: tcommit // encoding: [0x7f,0x30,0x03,0xd5]
14 // CHECK: tcancel #0x1234 // encoding: [0x80,0x46,0x62,0xd4]
17 // NOTME: instruction requires: tme
18 // NOTME-NEXT: tstart x3
19 // NOTME: instruction requires: tme
20 // NOTME-NEXT: ttest x4
21 // NOTME: instruction requires: tme
22 // NOTME-NEXT: tcommit
23 // NOTME: instruction requires: tme
24 // NOTME-NEXT: tcancel #0x1234