forked from OSchip/llvm-project
[Sparc] Correct quad register list in the asm parser.
Add test cases to check parsing of v9 double registers and their aliased quad registers. llvm-svn: 199974
This commit is contained in:
parent
d8cadd6f17
commit
98aa7fab7e
|
@ -117,7 +117,7 @@ public:
|
|||
static unsigned QuadFPRegs[32] = {
|
||||
Sparc::Q0, Sparc::Q1, Sparc::Q2, Sparc::Q3,
|
||||
Sparc::Q4, Sparc::Q5, Sparc::Q6, Sparc::Q7,
|
||||
Sparc::Q8, Sparc::Q7, Sparc::Q8, Sparc::Q9,
|
||||
Sparc::Q8, Sparc::Q9, Sparc::Q10, Sparc::Q11,
|
||||
Sparc::Q12, Sparc::Q13, Sparc::Q14, Sparc::Q15 };
|
||||
|
||||
|
||||
|
|
|
@ -81,6 +81,12 @@
|
|||
# CHECK: faddq %f0, %f4, %f8
|
||||
0x91 0xa0 0x08 0x64
|
||||
|
||||
# CHECK: faddd %f32, %f34, %f62
|
||||
0xbf 0xa0 0x48 0x43
|
||||
|
||||
# CHECK: faddq %f32, %f36, %f60
|
||||
0xbb 0xa0 0x48 0x65
|
||||
|
||||
# CHECK: fsubs %f0, %f4, %f8
|
||||
0x91 0xa0 0x08 0xa4
|
||||
|
||||
|
|
|
@ -64,6 +64,12 @@
|
|||
faddd %f0, %f4, %f8
|
||||
faddq %f0, %f4, %f8
|
||||
|
||||
! make sure we can handle V9 double registers and their aliased quad registers.
|
||||
! CHECK: faddd %f32, %f34, %f62 ! encoding: [0xbf,0xa0,0x48,0x43]
|
||||
! CHECK: faddq %f32, %f36, %f60 ! encoding: [0xbb,0xa0,0x48,0x65]
|
||||
faddd %f32, %f34, %f62
|
||||
faddq %f32, %f36, %f60
|
||||
|
||||
! CHECK: fsubs %f0, %f4, %f8 ! encoding: [0x91,0xa0,0x08,0xa4]
|
||||
! CHECK: fsubd %f0, %f4, %f8 ! encoding: [0x91,0xa0,0x08,0xc4]
|
||||
! CHECK: fsubq %f0, %f4, %f8 ! encoding: [0x91,0xa0,0x08,0xe4]
|
||||
|
|
Loading…
Reference in New Issue