2010-11-12 23:30:17 +00:00
|
|
|
# RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
|
|
|
|
|
|
|
|
# Test to ensure that all FPU instructions can be parsed by the
|
|
|
|
# assembly parser correctly.
|
|
|
|
|
|
|
|
# TYPE A: OPCODE RD RA RB FLAGS
|
|
|
|
# BINARY: 011011 00000 00000 00000 00000000000
|
|
|
|
|
|
|
|
# CHECK: pcmpbf
|
|
|
|
# BINARY: 100000 00000 00001 00010 10000000000
|
|
|
|
# CHECK: encoding: [0x80,0x01,0x14,0x00]
|
|
|
|
pcmpbf r0, r1, r2
|
|
|
|
|
2010-11-13 02:37:59 +00:00
|
|
|
# CHECK: pcmpne
|
2010-11-12 23:30:17 +00:00
|
|
|
# BINARY: 100011 00000 00001 00010 10000000000
|
|
|
|
# CHECK: encoding: [0x8c,0x01,0x14,0x00]
|
2010-11-13 02:37:59 +00:00
|
|
|
pcmpne r0, r1, r2
|
2010-11-12 23:30:17 +00:00
|
|
|
|
2010-11-13 02:37:59 +00:00
|
|
|
# CHECK: pcmpeq
|
2010-11-12 23:30:17 +00:00
|
|
|
# BINARY: 100010 00000 00001 00010 10000000000
|
|
|
|
# CHECK: encoding: [0x88,0x01,0x14,0x00]
|
2010-11-13 02:37:59 +00:00
|
|
|
pcmpeq r0, r1, r2
|