61 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fprcvt < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fprcvt < %s \6// RUN: | llvm-objdump -d --mattr=+fprcvt - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fprcvt < %s \8// RUN: | llvm-objdump -d --no-print-imm-hex --mattr=-fprcvt - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fprcvt < %s \11// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN: | llvm-mc -triple=aarch64 -mattr=+fprcvt -disassemble -show-encoding \13// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15scvtf d1, s216// CHECK-INST: scvtf d1, s217// CHECK-ENCODING: [0x41,0x00,0x7c,0x1e]18// CHECK-ERROR: instruction requires: fprcvt19// CHECK-UNKNOWN: 1e7c0041 <unknown>20 21scvtf h1, s222// CHECK-INST: scvtf h1, s223// CHECK-ENCODING: [0x41,0x00,0xfc,0x1e]24// CHECK-ERROR: instruction requires: fprcvt25// CHECK-UNKNOWN: 1efc0041 <unknown>26 27scvtf h2, d028// CHECK-INST: scvtf h2, d029// CHECK-ENCODING: [0x02,0x00,0xfc,0x9e]30// CHECK-ERROR: instruction requires: fprcvt31// CHECK-UNKNOWN: 9efc0002 <unknown>32 33scvtf s3, d434// CHECK-INST: scvtf s3, d435// CHECK-ENCODING: [0x83,0x00,0x3c,0x9e]36// CHECK-ERROR: instruction requires: fprcvt37// CHECK-UNKNOWN: 9e3c0083 <unknown>38 39ucvtf d1, s240// CHECK-INST: ucvtf d1, s241// CHECK-ENCODING: [0x41,0x00,0x7d,0x1e]42// CHECK-ERROR: instruction requires: fprcvt43// CHECK-UNKNOWN: 1e7d0041 <unknown>44 45ucvtf h1, s246// CHECK-INST: ucvtf h1, s247// CHECK-ENCODING: [0x41,0x00,0xfd,0x1e]48// CHECK-ERROR: instruction requires: fprcvt49// CHECK-UNKNOWN: 1efd0041 <unknown>50 51ucvtf h2, d052// CHECK-INST: ucvtf h2, d053// CHECK-ENCODING: [0x02,0x00,0xfd,0x9e]54// CHECK-ERROR: instruction requires: fprcvt55// CHECK-UNKNOWN: 9efd0002 <unknown>56 57ucvtf s3, d458// CHECK-INST: ucvtf s3, d459// CHECK-ENCODING: [0x83,0x00,0x3d,0x9e]60// CHECK-ERROR: instruction requires: fprcvt61// CHECK-UNKNOWN: 9e3d0083 <unknown>