1// RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s | FileCheck %s 2 3bar: 4 fred .req x5 5 mov fred, x11 6 .unreq fred 7 fred .req w6 8 mov w1, fred 9 10 bob .req fred 11 ada .req w1 12 mov ada, bob 13 .unreq bob 14 .unreq fred 15 .unreq ada 16// CHECK: mov x5, x11 // encoding: [0xe5,0x03,0x0b,0xaa] 17// CHECK: mov w1, w6 // encoding: [0xe1,0x03,0x06,0x2a] 18// CHECK: mov w1, w6 // encoding: [0xe1,0x03,0x06,0x2a] 19 20 bob .req b6 21 hanah .req h5 22 sam .req s4 23 dora .req d3 24 quentin .req q2 25 vesna .req v1 26 addv bob, v0.8b 27 mov hanah, v4.h[3] 28 fadd s0, sam, sam 29 fmov d2, dora 30 ldr quentin, [sp] 31 mov v0.8b, vesna.8b 32// CHECK: addv b6, v0.8b // encoding: [0x06,0xb8,0x31,0x0e] 33// CHECK: mov h5, v4.h[3] // encoding: [0x85,0x04,0x0e,0x5e] 34// CHECK: fadd s0, s4, s4 // encoding: [0x80,0x28,0x24,0x1e] 35// CHECK: fmov d2, d3 // encoding: [0x62,0x40,0x60,0x1e] 36// CHECK: ldr q2, [sp] // encoding: [0xe2,0x03,0xc0,0x3d] 37// CHECK: mov v0.8b, v1.8b // encoding: [0x20,0x1c,0xa1,0x0e] 38