2015-12-08 20:16:10 +08:00
|
|
|
// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon,+fullfp16 -show-encoding < %s | FileCheck %s
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
// Check that the assembler can handle the documented syntax for AArch64
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Equal
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmeq h10, h11, h12
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmeq s10, s11, s12
|
|
|
|
fcmeq d20, d21, d22
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmeq h10, h11, h12 // encoding: [0x6a,0x25,0x4c,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmeq s10, s11, s12 // encoding: [0x6a,0xe5,0x2c,0x5e]
|
|
|
|
// CHECK: fcmeq d20, d21, d22 // encoding: [0xb4,0xe6,0x76,0x5e]
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Equal To Zero
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmeq h10, h11, #0.0
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmeq s10, s11, #0.0
|
|
|
|
fcmeq d20, d21, #0.0
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmeq h10, h11, #0
|
2014-01-20 10:14:05 +08:00
|
|
|
fcmeq s10, s11, #0
|
|
|
|
fcmeq d20, d21, #0x0
|
2013-10-30 23:19:37 +08:00
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmeq h10, h11, #0.0 // encoding: [0x6a,0xd9,0xf8,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmeq s10, s11, #0.0 // encoding: [0x6a,0xd9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmeq d20, d21, #0.0 // encoding: [0xb4,0xda,0xe0,0x5e]
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmeq h10, h11, #0.0 // encoding: [0x6a,0xd9,0xf8,0x5e]
|
2014-01-20 10:14:05 +08:00
|
|
|
// CHECK: fcmeq s10, s11, #0.0 // encoding: [0x6a,0xd9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmeq d20, d21, #0.0 // encoding: [0xb4,0xda,0xe0,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Greater Than Or Equal
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmge h10, h11, h12
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmge s10, s11, s12
|
|
|
|
fcmge d20, d21, d22
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmge h10, h11, h12 // encoding: [0x6a,0x25,0x4c,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmge s10, s11, s12 // encoding: [0x6a,0xe5,0x2c,0x7e]
|
|
|
|
// CHECK: fcmge d20, d21, d22 // encoding: [0xb4,0xe6,0x76,0x7e]
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Greater Than Or Equal To Zero
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmge h10, h11, #0.0
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmge s10, s11, #0.0
|
|
|
|
fcmge d20, d21, #0.0
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmge h10, h11, #0
|
2014-01-20 10:14:05 +08:00
|
|
|
fcmge s10, s11, #0
|
|
|
|
fcmge d20, d21, #0x0
|
2013-10-30 23:19:37 +08:00
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmge h10, h11, #0.0 // encoding: [0x6a,0xc9,0xf8,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmge s10, s11, #0.0 // encoding: [0x6a,0xc9,0xa0,0x7e]
|
|
|
|
// CHECK: fcmge d20, d21, #0.0 // encoding: [0xb4,0xca,0xe0,0x7e]
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmge h10, h11, #0.0 // encoding: [0x6a,0xc9,0xf8,0x7e]
|
2014-01-20 10:14:05 +08:00
|
|
|
// CHECK: fcmge s10, s11, #0.0 // encoding: [0x6a,0xc9,0xa0,0x7e]
|
|
|
|
// CHECK: fcmge d20, d21, #0.0 // encoding: [0xb4,0xca,0xe0,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Greather Than
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmgt h10, h11, h12
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmgt s10, s11, s12
|
|
|
|
fcmgt d20, d21, d22
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmgt h10, h11, h12 // encoding: [0x6a,0x25,0xcc,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmgt s10, s11, s12 // encoding: [0x6a,0xe5,0xac,0x7e]
|
|
|
|
// CHECK: fcmgt d20, d21, d22 // encoding: [0xb4,0xe6,0xf6,0x7e]
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Greather Than Zero
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmgt h10, h11, #0.0
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmgt s10, s11, #0.0
|
|
|
|
fcmgt d20, d21, #0.0
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmgt h10, h11, #0
|
2014-01-20 10:14:05 +08:00
|
|
|
fcmgt s10, s11, #0
|
|
|
|
fcmgt d20, d21, #0x0
|
2013-10-30 23:19:37 +08:00
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmgt h10, h11, #0.0 // encoding: [0x6a,0xc9,0xf8,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmgt s10, s11, #0.0 // encoding: [0x6a,0xc9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmgt d20, d21, #0.0 // encoding: [0xb4,0xca,0xe0,0x5e]
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmgt h10, h11, #0.0 // encoding: [0x6a,0xc9,0xf8,0x5e]
|
2014-01-20 10:14:05 +08:00
|
|
|
// CHECK: fcmgt s10, s11, #0.0 // encoding: [0x6a,0xc9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmgt d20, d21, #0.0 // encoding: [0xb4,0xca,0xe0,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Less Than Or Equal To Zero
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmle h10, h11, #0.0
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmle s10, s11, #0.0
|
|
|
|
fcmle d20, d21, #0.0
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmle h10, h11, #0
|
2014-01-20 10:14:05 +08:00
|
|
|
fcmle s10, s11, #0
|
|
|
|
fcmle d20, d21, #0x0
|
2013-10-30 23:19:37 +08:00
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmle h10, h11, #0.0 // encoding: [0x6a,0xd9,0xf8,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmle s10, s11, #0.0 // encoding: [0x6a,0xd9,0xa0,0x7e]
|
|
|
|
// CHECK: fcmle d20, d21, #0.0 // encoding: [0xb4,0xda,0xe0,0x7e]
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmle h10, h11, #0.0 // encoding: [0x6a,0xd9,0xf8,0x7e]
|
2014-01-20 10:14:05 +08:00
|
|
|
// CHECK: fcmle s10, s11, #0.0 // encoding: [0x6a,0xd9,0xa0,0x7e]
|
|
|
|
// CHECK: fcmle d20, d21, #0.0 // encoding: [0xb4,0xda,0xe0,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Compare Mask Less Than
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmlt h10, h11, #0.0
|
2013-10-30 23:19:37 +08:00
|
|
|
fcmlt s10, s11, #0.0
|
|
|
|
fcmlt d20, d21, #0.0
|
2015-12-08 20:16:10 +08:00
|
|
|
fcmlt h10, h11, #0
|
2014-01-20 10:14:05 +08:00
|
|
|
fcmlt s10, s11, #0
|
|
|
|
fcmlt d20, d21, #0x0
|
2013-10-30 23:19:37 +08:00
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmlt h10, h11, #0.0 // encoding: [0x6a,0xe9,0xf8,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: fcmlt s10, s11, #0.0 // encoding: [0x6a,0xe9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmlt d20, d21, #0.0 // encoding: [0xb4,0xea,0xe0,0x5e]
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: fcmlt h10, h11, #0.0 // encoding: [0x6a,0xe9,0xf8,0x5e]
|
2014-01-20 10:14:05 +08:00
|
|
|
// CHECK: fcmlt s10, s11, #0.0 // encoding: [0x6a,0xe9,0xa0,0x5e]
|
|
|
|
// CHECK: fcmlt d20, d21, #0.0 // encoding: [0xb4,0xea,0xe0,0x5e]
|
2013-10-30 23:19:37 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Absolute Compare Mask Greater Than Or Equal
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
facge h10, h11, h12
|
2013-10-30 23:19:37 +08:00
|
|
|
facge s10, s11, s12
|
|
|
|
facge d20, d21, d22
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: facge h10, h11, h12 // encoding: [0x6a,0x2d,0x4c,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: facge s10, s11, s12 // encoding: [0x6a,0xed,0x2c,0x7e]
|
|
|
|
// CHECK: facge d20, d21, d22 // encoding: [0xb4,0xee,0x76,0x7e]
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Scalar Floating-point Absolute Compare Mask Greater Than
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
facgt h10, h11, h12
|
2013-10-30 23:19:37 +08:00
|
|
|
facgt s10, s11, s12
|
|
|
|
facgt d20, d21, d22
|
|
|
|
|
2015-12-08 20:16:10 +08:00
|
|
|
// CHECK: facgt h10, h11, h12 // encoding: [0x6a,0x2d,0xcc,0x7e]
|
2013-10-30 23:19:37 +08:00
|
|
|
// CHECK: facgt s10, s11, s12 // encoding: [0x6a,0xed,0xac,0x7e]
|
|
|
|
// CHECK: facgt d20, d21, d22 // encoding: [0xb4,0xee,0xf6,0x7e]
|