50 lines · plain
1// RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s 2>&1 | FileCheck %s2 3bar:4 fred .req x55// CHECK-NOT: ignoring redefinition of register alias 'fred'6 fred .req x57 mov fred, x118 .unreq fred9 fred .req w610 mov w1, fred11 12 bob .req fred13 ada .req w114 mov ada, bob15 .unreq bob16 .unreq fred17 .unreq ada18// CHECK: mov x5, x11 // encoding: [0xe5,0x03,0x0b,0xaa]19// CHECK: mov w1, w6 // encoding: [0xe1,0x03,0x06,0x2a]20// CHECK: mov w1, w6 // encoding: [0xe1,0x03,0x06,0x2a]21 22 bob .req b623 hanah .req h524 sam .req s425 dora .req d326 quentin .req q227 vesna .req v128 addv bob, v0.8b29 mov hanah, v4.h[3]30 fadd s0, sam, sam31 fmov d2, dora32 ldr quentin, [sp]33 mov v0.8b, vesna.8b34// CHECK: addv b6, v0.8b // encoding: [0x06,0xb8,0x31,0x0e]35// CHECK: mov h5, v4.h[3] // encoding: [0x85,0x04,0x0e,0x5e]36// CHECK: fadd s0, s4, s4 // encoding: [0x80,0x28,0x24,0x1e]37// CHECK: fmov d2, d3 // encoding: [0x62,0x40,0x60,0x1e]38// CHECK: ldr q2, [sp] // encoding: [0xe2,0x03,0xc0,0x3d]39// CHECK: mov v0.8b, v1.8b // encoding: [0x20,0x1c,0xa1,0x0e]40 41 peter .req x642 add peter, x0, x043 .unreq peter44// CHECK: add x6, x0, x045 46 zoe .req x647 add zoe, x0, x048 .unreq zoe49// CHECK: add x6, x0, x050