brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.1 KiB · 3d052d6 Raw
109 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \8// RUN:        | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12// Test instruction variants that aren't legal in streaming mode.13 14st1w    { z0.s }, p0, [x0, z0.s, uxtw]15// CHECK-INST: st1w    { z0.s }, p0, [x0, z0.s, uxtw]16// CHECK-ENCODING: [0x00,0x80,0x40,0xe5]17// CHECK-ERROR: instruction requires: sve18// CHECK-UNKNOWN: e5408000 <unknown>19 20st1w    { z0.s }, p0, [x0, z0.s, sxtw]21// CHECK-INST: st1w    { z0.s }, p0, [x0, z0.s, sxtw]22// CHECK-ENCODING: [0x00,0xc0,0x40,0xe5]23// CHECK-ERROR: instruction requires: sve24// CHECK-UNKNOWN: e540c000 <unknown>25 26st1w    { z0.d }, p0, [x0, z0.d, uxtw]27// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d, uxtw]28// CHECK-ENCODING: [0x00,0x80,0x00,0xe5]29// CHECK-ERROR: instruction requires: sve30// CHECK-UNKNOWN: e5008000 <unknown>31 32st1w    { z0.d }, p0, [x0, z0.d, sxtw]33// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d, sxtw]34// CHECK-ENCODING: [0x00,0xc0,0x00,0xe5]35// CHECK-ERROR: instruction requires: sve36// CHECK-UNKNOWN: e500c000 <unknown>37 38st1w    { z0.s }, p0, [x0, z0.s, uxtw #2]39// CHECK-INST: st1w    { z0.s }, p0, [x0, z0.s, uxtw #2]40// CHECK-ENCODING: [0x00,0x80,0x60,0xe5]41// CHECK-ERROR: instruction requires: sve42// CHECK-UNKNOWN: e5608000 <unknown>43 44st1w    { z0.s }, p0, [x0, z0.s, sxtw #2]45// CHECK-INST: st1w    { z0.s }, p0, [x0, z0.s, sxtw #2]46// CHECK-ENCODING: [0x00,0xc0,0x60,0xe5]47// CHECK-ERROR: instruction requires: sve48// CHECK-UNKNOWN: e560c000 <unknown>49 50st1w    { z0.d }, p0, [x0, z0.d, uxtw #2]51// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d, uxtw #2]52// CHECK-ENCODING: [0x00,0x80,0x20,0xe5]53// CHECK-ERROR: instruction requires: sve54// CHECK-UNKNOWN: e5208000 <unknown>55 56st1w    { z0.d }, p0, [x0, z0.d, sxtw #2]57// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d, sxtw #2]58// CHECK-ENCODING: [0x00,0xc0,0x20,0xe5]59// CHECK-ERROR: instruction requires: sve60// CHECK-UNKNOWN: e520c000 <unknown>61 62st1w    { z0.d }, p0, [x0, z0.d]63// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d]64// CHECK-ENCODING: [0x00,0xa0,0x00,0xe5]65// CHECK-ERROR: instruction requires: sve66// CHECK-UNKNOWN: e500a000 <unknown>67 68st1w    { z0.d }, p0, [x0, z0.d, lsl #2]69// CHECK-INST: st1w    { z0.d }, p0, [x0, z0.d, lsl #2]70// CHECK-ENCODING: [0x00,0xa0,0x20,0xe5]71// CHECK-ERROR: instruction requires: sve72// CHECK-UNKNOWN: e520a000 <unknown>73 74st1w    { z31.s }, p7, [z31.s, #124]75// CHECK-INST: st1w    { z31.s }, p7, [z31.s, #124]76// CHECK-ENCODING: [0xff,0xbf,0x7f,0xe5]77// CHECK-ERROR: instruction requires: sve78// CHECK-UNKNOWN: e57fbfff <unknown>79 80st1w    { z31.d }, p7, [z31.d, #124]81// CHECK-INST: st1w    { z31.d }, p7, [z31.d, #124]82// CHECK-ENCODING: [0xff,0xbf,0x5f,0xe5]83// CHECK-ERROR: instruction requires: sve84// CHECK-UNKNOWN: e55fbfff <unknown>85 86st1w    { z0.s }, p7, [z0.s, #0]87// CHECK-INST: st1w    { z0.s }, p7, [z0.s]88// CHECK-ENCODING: [0x00,0xbc,0x60,0xe5]89// CHECK-ERROR: instruction requires: sve90// CHECK-UNKNOWN: e560bc00 <unknown>91 92st1w    { z0.s }, p7, [z0.s]93// CHECK-INST: st1w    { z0.s }, p7, [z0.s]94// CHECK-ENCODING: [0x00,0xbc,0x60,0xe5]95// CHECK-ERROR: instruction requires: sve96// CHECK-UNKNOWN: e560bc00 <unknown>97 98st1w    { z0.d }, p7, [z0.d, #0]99// CHECK-INST: st1w    { z0.d }, p7, [z0.d]100// CHECK-ENCODING: [0x00,0xbc,0x40,0xe5]101// CHECK-ERROR: instruction requires: sve102// CHECK-UNKNOWN: e540bc00 <unknown>103 104st1w    { z0.d }, p7, [z0.d]105// CHECK-INST: st1w    { z0.d }, p7, [z0.d]106// CHECK-ENCODING: [0x00,0xbc,0x40,0xe5]107// CHECK-ERROR: instruction requires: sve108// CHECK-UNKNOWN: e540bc00 <unknown>109