brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · 25ade26 Raw
101 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %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 12cmplo   p0.b, p0/z, z0.b, z1.b13// CHECK-INST: cmphi	p0.b, p0/z, z1.b, z0.b14// CHECK-ENCODING: [0x30,0x00,0x00,0x24]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 24000030 <unknown>17 18cmplo   p0.h, p0/z, z0.h, z1.h19// CHECK-INST: cmphi	p0.h, p0/z, z1.h, z0.h20// CHECK-ENCODING: [0x30,0x00,0x40,0x24]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 24400030 <unknown>23 24cmplo   p0.s, p0/z, z0.s, z1.s25// CHECK-INST: cmphi	p0.s, p0/z, z1.s, z0.s26// CHECK-ENCODING: [0x30,0x00,0x80,0x24]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 24800030 <unknown>29 30cmplo   p0.d, p0/z, z0.d, z1.d31// CHECK-INST: cmphi	p0.d, p0/z, z1.d, z0.d32// CHECK-ENCODING: [0x30,0x00,0xc0,0x24]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 24c00030 <unknown>35 36cmplo   p0.b, p0/z, z0.b, z0.d37// CHECK-INST: cmplo p0.b, p0/z, z0.b, z0.d38// CHECK-ENCODING: [0x00,0xe0,0x00,0x24]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 2400e000 <unknown>41 42cmplo   p0.h, p0/z, z0.h, z0.d43// CHECK-INST: cmplo p0.h, p0/z, z0.h, z0.d44// CHECK-ENCODING: [0x00,0xe0,0x40,0x24]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 2440e000 <unknown>47 48cmplo   p0.s, p0/z, z0.s, z0.d49// CHECK-INST: cmplo p0.s, p0/z, z0.s, z0.d50// CHECK-ENCODING: [0x00,0xe0,0x80,0x24]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 2480e000 <unknown>53 54cmplo   p0.b, p0/z, z0.b, #055// CHECK-INST: cmplo p0.b, p0/z, z0.b, #056// CHECK-ENCODING: [0x00,0x20,0x20,0x24]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 24202000 <unknown>59 60cmplo   p0.h, p0/z, z0.h, #061// CHECK-INST: cmplo p0.h, p0/z, z0.h, #062// CHECK-ENCODING: [0x00,0x20,0x60,0x24]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 24602000 <unknown>65 66cmplo   p0.s, p0/z, z0.s, #067// CHECK-INST: cmplo p0.s, p0/z, z0.s, #068// CHECK-ENCODING: [0x00,0x20,0xa0,0x24]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 24a02000 <unknown>71 72cmplo   p0.d, p0/z, z0.d, #073// CHECK-INST: cmplo p0.d, p0/z, z0.d, #074// CHECK-ENCODING: [0x00,0x20,0xe0,0x24]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 24e02000 <unknown>77 78cmplo   p0.b, p0/z, z0.b, #12779// CHECK-INST: cmplo p0.b, p0/z, z0.b, #12780// CHECK-ENCODING: [0x00,0xe0,0x3f,0x24]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 243fe000 <unknown>83 84cmplo   p0.h, p0/z, z0.h, #12785// CHECK-INST: cmplo p0.h, p0/z, z0.h, #12786// CHECK-ENCODING: [0x00,0xe0,0x7f,0x24]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 247fe000 <unknown>89 90cmplo   p0.s, p0/z, z0.s, #12791// CHECK-INST: cmplo p0.s, p0/z, z0.s, #12792// CHECK-ENCODING: [0x00,0xe0,0xbf,0x24]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 24bfe000 <unknown>95 96cmplo   p0.d, p0/z, z0.d, #12797// CHECK-INST: cmplo p0.d, p0/z, z0.d, #12798// CHECK-ENCODING: [0x00,0xe0,0xff,0x24]99// CHECK-ERROR: instruction requires: sve or sme100// CHECK-UNKNOWN: 24ffe000 <unknown>101