93 lines · plain
1// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.5a < %s | FileCheck %s2// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a,+fptoint < %s | FileCheck %s3// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a,-v8.5a < %s 2>&1 | FileCheck %s --check-prefix=NOFRINT4// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-v8.5a < %s 2>&1 | FileCheck %s --check-prefix=NOFRINT5 6// FP-to-int rounding, scalar7frint32z s0, s18frint32z d0, d19frint64z s2, s310frint64z d2, d311frint32x s4, s512frint32x d4, d513frint64x s6, s714frint64x d6, d715 16// CHECK: frint32z s0, s1 // encoding: [0x20,0x40,0x28,0x1e]17// CHECK: frint32z d0, d1 // encoding: [0x20,0x40,0x68,0x1e]18// CHECK: frint64z s2, s3 // encoding: [0x62,0x40,0x29,0x1e]19// CHECK: frint64z d2, d3 // encoding: [0x62,0x40,0x69,0x1e]20// CHECK: frint32x s4, s5 // encoding: [0xa4,0xc0,0x28,0x1e]21// CHECK: frint32x d4, d5 // encoding: [0xa4,0xc0,0x68,0x1e]22// CHECK: frint64x s6, s7 // encoding: [0xe6,0xc0,0x29,0x1e]23// CHECK: frint64x d6, d7 // encoding: [0xe6,0xc0,0x69,0x1e]24 25// NOFRINT: instruction requires: frint326426// NOFRINT-NEXT: frint32z s0, s127// NOFRINT: instruction requires: frint326428// NOFRINT-NEXT: frint32z d0, d129// NOFRINT: instruction requires: frint326430// NOFRINT-NEXT: frint64z s2, s331// NOFRINT: instruction requires: frint326432// NOFRINT-NEXT: frint64z d2, d333// NOFRINT: instruction requires: frint326434// NOFRINT-NEXT: frint32x s4, s535// NOFRINT: instruction requires: frint326436// NOFRINT-NEXT: frint32x d4, d537// NOFRINT: instruction requires: frint326438// NOFRINT-NEXT: frint64x s6, s739// NOFRINT: instruction requires: frint326440// NOFRINT-NEXT: frint64x d6, d741 42// FP-to-int rounding, vector43frint32z v0.2s, v1.2s44frint32z v0.2d, v1.2d45frint32z v0.4s, v1.4s46frint64z v2.2s, v3.2s47frint64z v2.2d, v3.2d48frint64z v2.4s, v3.4s49frint32x v4.2s, v5.2s50frint32x v4.2d, v5.2d51frint32x v4.4s, v5.4s52frint64x v6.2s, v7.2s53frint64x v6.2d, v7.2d54frint64x v6.4s, v7.4s55 56// CHECK: frint32z v0.2s, v1.2s // encoding: [0x20,0xe8,0x21,0x0e]57// CHECK: frint32z v0.2d, v1.2d // encoding: [0x20,0xe8,0x61,0x4e]58// CHECK: frint32z v0.4s, v1.4s // encoding: [0x20,0xe8,0x21,0x4e]59// CHECK: frint64z v2.2s, v3.2s // encoding: [0x62,0xf8,0x21,0x0e]60// CHECK: frint64z v2.2d, v3.2d // encoding: [0x62,0xf8,0x61,0x4e]61// CHECK: frint64z v2.4s, v3.4s // encoding: [0x62,0xf8,0x21,0x4e]62// CHECK: frint32x v4.2s, v5.2s // encoding: [0xa4,0xe8,0x21,0x2e]63// CHECK: frint32x v4.2d, v5.2d // encoding: [0xa4,0xe8,0x61,0x6e]64// CHECK: frint32x v4.4s, v5.4s // encoding: [0xa4,0xe8,0x21,0x6e]65// CHECK: frint64x v6.2s, v7.2s // encoding: [0xe6,0xf8,0x21,0x2e]66// CHECK: frint64x v6.2d, v7.2d // encoding: [0xe6,0xf8,0x61,0x6e]67// CHECK: frint64x v6.4s, v7.4s // encoding: [0xe6,0xf8,0x21,0x6e]68 69// NOFRINT: instruction requires: frint326470// NOFRINT-NEXT: frint32z v0.2s, v1.2s71// NOFRINT: instruction requires: frint326472// NOFRINT-NEXT: frint32z v0.2d, v1.2d73// NOFRINT: instruction requires: frint326474// NOFRINT-NEXT: frint32z v0.4s, v1.4s75// NOFRINT: instruction requires: frint326476// NOFRINT-NEXT: frint64z v2.2s, v3.2s77// NOFRINT: instruction requires: frint326478// NOFRINT-NEXT: frint64z v2.2d, v3.2d79// NOFRINT: instruction requires: frint326480// NOFRINT-NEXT: frint64z v2.4s, v3.4s81// NOFRINT: instruction requires: frint326482// NOFRINT-NEXT: frint32x v4.2s, v5.2s83// NOFRINT: instruction requires: frint326484// NOFRINT-NEXT: frint32x v4.2d, v5.2d85// NOFRINT: instruction requires: frint326486// NOFRINT-NEXT: frint32x v4.4s, v5.4s87// NOFRINT: instruction requires: frint326488// NOFRINT-NEXT: frint64x v6.2s, v7.2s89// NOFRINT: instruction requires: frint326490// NOFRINT-NEXT: frint64x v6.2d, v7.2d91// NOFRINT: instruction requires: frint326492// NOFRINT-NEXT: frint64x v6.4s, v7.4s93