1489b9b348dab51243f93d2f4bdd107c9db077609Amaury de la Vieuville@ RUN: llvm-mc -triple armv8 -mattr=+fp-armv8 -show-encoding < %s | FileCheck %s
2929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly
3929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ VCVT{B,T}
4929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly
5929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtt.f64.f16 d3, s1
6929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtt.f64.f16 d3, s1      @ encoding: [0xe0,0x3b,0xb2,0xee]
7929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtt.f16.f64 s5, d12
8929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtt.f16.f64 s5, d12     @ encoding: [0xcc,0x2b,0xf3,0xee]
9929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly
10929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtb.f64.f16 d3, s1
11929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtb.f64.f16 d3, s1     @ encoding: [0x60,0x3b,0xb2,0xee]
12929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtb.f16.f64 s4, d1
13929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtb.f16.f64 s4, d1     @ encoding: [0x41,0x2b,0xb3,0xee]
14929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly
15929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvttge.f64.f16 d3, s1
16929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvttge.f64.f16 d3, s1      @ encoding: [0xe0,0x3b,0xb2,0xae]
17929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvttgt.f16.f64 s5, d12
18929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvttgt.f16.f64 s5, d12     @ encoding: [0xcc,0x2b,0xf3,0xce]
19929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly
20929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtbeq.f64.f16 d3, s1
21929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtbeq.f64.f16 d3, s1     @ encoding: [0x60,0x3b,0xb2,0x0e]
22929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly  vcvtblt.f16.f64 s4, d1
23929d9ef111cc0053e245d04464c5ba9fba7727b2Joey Gouly@ CHECK: vcvtblt.f16.f64 s4, d1     @ encoding: [0x41,0x2b,0xb3,0xbe]
244ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly
259fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly
269fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ VCVT{A,N,P,M}
279fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly
289fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvta.s32.f32 s2, s3
299fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvta.s32.f32 s2, s3     @ encoding: [0xe1,0x1a,0xbc,0xfe]
309fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvta.s32.f64 s2, d3
319fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvta.s32.f64 s2, d3     @ encoding: [0xc3,0x1b,0xbc,0xfe]
329fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtn.s32.f32 s6, s23
339fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtn.s32.f32 s6, s23     @ encoding: [0xeb,0x3a,0xbd,0xfe]
349fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtn.s32.f64 s6, d23
359fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtn.s32.f64 s6, d23     @ encoding: [0xe7,0x3b,0xbd,0xfe]
369fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtp.s32.f32 s0, s4
379fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtp.s32.f32 s0, s4     @ encoding: [0xc2,0x0a,0xbe,0xfe]
389fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtp.s32.f64 s0, d4
399fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtp.s32.f64 s0, d4     @ encoding: [0xc4,0x0b,0xbe,0xfe]
409fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtm.s32.f32 s17, s8
419fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtm.s32.f32 s17, s8     @ encoding: [0xc4,0x8a,0xff,0xfe]
429fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtm.s32.f64 s17, d8
439fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtm.s32.f64 s17, d8     @ encoding: [0xc8,0x8b,0xff,0xfe]
449fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly
459fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvta.u32.f32 s2, s3
469fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvta.u32.f32 s2, s3     @ encoding: [0x61,0x1a,0xbc,0xfe]
479fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvta.u32.f64 s2, d3
489fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvta.u32.f64 s2, d3     @ encoding: [0x43,0x1b,0xbc,0xfe]
499fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtn.u32.f32 s6, s23
509fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtn.u32.f32 s6, s23     @ encoding: [0x6b,0x3a,0xbd,0xfe]
519fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtn.u32.f64 s6, d23
529fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtn.u32.f64 s6, d23     @ encoding: [0x67,0x3b,0xbd,0xfe]
539fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtp.u32.f32 s0, s4
549fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtp.u32.f32 s0, s4     @ encoding: [0x42,0x0a,0xbe,0xfe]
559fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtp.u32.f64 s0, d4
569fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtp.u32.f64 s0, d4     @ encoding: [0x44,0x0b,0xbe,0xfe]
579fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtm.u32.f32 s17, s8
589fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtm.u32.f32 s17, s8     @ encoding: [0x44,0x8a,0xff,0xfe]
599fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly  vcvtm.u32.f64 s17, d8
609fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly@ CHECK: vcvtm.u32.f64 s17, d8     @ encoding: [0x48,0x8b,0xff,0xfe]
619fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly
629fb5a6588becc92be1d7cf503d2947b170be3c31Joey Gouly
634ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ VSEL
644ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselge.f32 s4, s1, s23
654ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselge.f32 s4, s1, s23    @ encoding: [0xab,0x2a,0x20,0xfe]
664ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselge.f64 d30, d31, d23
674ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselge.f64 d30, d31, d23  @ encoding: [0xa7,0xeb,0x6f,0xfe]
684ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselgt.f32 s0, s1, s0
694ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselgt.f32 s0, s1, s0    @ encoding: [0x80,0x0a,0x30,0xfe]
704ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselgt.f64 d5, d10, d20
714ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselgt.f64 d5, d10, d20  @ encoding: [0x24,0x5b,0x3a,0xfe]
724ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vseleq.f32 s30, s28, s23
734ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vseleq.f32 s30, s28, s23 @ encoding: [0x2b,0xfa,0x0e,0xfe]
744ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vseleq.f64 d2, d4, d8
754ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vseleq.f64 d2, d4, d8    @ encoding: [0x08,0x2b,0x04,0xfe]
764ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselvs.f32 s21, s16, s14
774ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselvs.f32 s21, s16, s14 @ encoding: [0x07,0xaa,0x58,0xfe]
784ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly  vselvs.f64 d0, d1, d31
794ea250524f77a67102118747dad6ee69f9f3b3aaJoey Gouly@ CHECK: vselvs.f64 d0, d1, d31   @ encoding: [0x2f,0x0b,0x11,0xfe]
802a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly
812a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly
822a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly@ VMAXNM / VMINNM
832a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly  vmaxnm.f32 s5, s12, s0
842a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly@ CHECK: vmaxnm.f32 s5, s12, s0    @ encoding: [0x00,0x2a,0xc6,0xfe]
852a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly  vmaxnm.f64 d5, d22, d30
862a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly@ CHECK: vmaxnm.f64 d5, d22, d30   @ encoding: [0xae,0x5b,0x86,0xfe]
872a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly  vminnm.f32 s0, s0, s12
882a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly@ CHECK: vminnm.f32 s0, s0, s12    @ encoding: [0x46,0x0a,0x80,0xfe]
892a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly  vminnm.f64 d4, d6, d9
902a9683289b78a2533b261e1b341f9ea9724465a0Joey Gouly@ CHECK: vminnm.f64 d4, d6, d9     @ encoding: [0x49,0x4b,0x86,0xfe]
918dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly
928dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ VRINT{Z,R,X}
938dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly
948dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintzge.f64 d3, d12
958dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintzge.f64 d3, d12   @ encoding: [0xcc,0x3b,0xb6,0xae]
968dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintz.f32 s3, s24
978dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintz.f32 s3, s24     @ encoding: [0xcc,0x1a,0xf6,0xee]
988dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintrlt.f64 d5, d0
998dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintrlt.f64 d5, d0    @ encoding: [0x40,0x5b,0xb6,0xbe]
1008dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintr.f32 s0, s9
1018dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintr.f32 s0, s9      @ encoding: [0x64,0x0a,0xb6,0xee]
1028dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintxeq.f64 d28, d30
1038dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintxeq.f64 d28, d30  @ encoding: [0x6e,0xcb,0xf7,0x0e]
1048dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly  vrintxvs.f32 s10, s14
1058dc741d29f9c9beff8a9f26ff23b307b9df4f8fdJoey Gouly@ CHECK: vrintxvs.f32 s10, s14  @ encoding: [0x47,0x5a,0xb7,0x6e]
10612f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly
10712f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ VRINT{A,N,P,M}
10812f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly
10912f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrinta.f64 d3, d4
11012f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrinta.f64 d3, d4     @ encoding: [0x44,0x3b,0xb8,0xfe]
11112f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrinta.f32 s12, s1
11212f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrinta.f32 s12, s1    @ encoding: [0x60,0x6a,0xb8,0xfe]
11312f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintn.f64 d3, d4
11412f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintn.f64 d3, d4     @ encoding: [0x44,0x3b,0xb9,0xfe]
11512f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintn.f32 s12, s1
11612f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintn.f32 s12, s1    @ encoding: [0x60,0x6a,0xb9,0xfe]
11712f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintp.f64 d3, d4
11812f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintp.f64 d3, d4     @ encoding: [0x44,0x3b,0xba,0xfe]
11912f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintp.f32 s12, s1
12012f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintp.f32 s12, s1    @ encoding: [0x60,0x6a,0xba,0xfe]
12112f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintm.f64 d3, d4
12212f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintm.f64 d3, d4     @ encoding: [0x44,0x3b,0xbb,0xfe]
12312f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly  vrintm.f32 s12, s1
12412f45c3782c0d01bcf9973bbc23dba2b17ce54cbJoey Gouly@ CHECK: vrintm.f32 s12, s1    @ encoding: [0x60,0x6a,0xbb,0xfe]
125ef572e31e210a03c0669e3ed2ed7cf2d789f8599Artyom Skrobov
126ef572e31e210a03c0669e3ed2ed7cf2d789f8599Artyom Skrobov@ MVFR2
127ef572e31e210a03c0669e3ed2ed7cf2d789f8599Artyom Skrobov
128ef572e31e210a03c0669e3ed2ed7cf2d789f8599Artyom Skrobov  vmrs sp, mvfr2
129ef572e31e210a03c0669e3ed2ed7cf2d789f8599Artyom Skrobov@ CHECK: vmrs sp, mvfr2        @ encoding: [0x10,0xda,0xf5,0xee]
130