1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/MC/Disassembler/ARC/br.txt
Tatyana Krasnukha 57f2fb1635 [ARC] Prevent InstPrinter from crashing on unknown condition codes.
Summary:
Instruction printer shouldn't crash with assertions due to incorrect input data. llvm_unreachable is not intended for runtime error handling.

Reviewers: petecoup

Reviewed By: petecoup

Differential Revision: https://reviews.llvm.org/D51728

llvm-svn: 341581
2018-09-06 19:58:26 +00:00

31 lines
496 B
Plaintext

# RUN: llvm-mc -triple=arc -disassemble %s | FileCheck %s
# CHECK: brlt %r2, 0, 60
0x3d 0x0a 0x12 0x00
# CHECK: brlo %r10, %r4, -112
0x91 0x0a 0x04 0x91
# CHECK: breq %r2, %r1, 44
0x2d 0x0a 0x40 0x00
# CHECK: brne %r0, 0, -16
0xf1 0x08 0x11 0x80
# CHECK: brhs %r2, %r8, 38
0x27 0x0a 0x05 0x02
# CHECK: bne 304
0x30 0x01 0x02 0x00
# CHECK: beq 268
0x0c 0x01 0x01 0x00
# CHECK: bhi 416
0xa0 0x01 0x0d 0x00
# CHECK: b -68
0xbd 0x07 0xcf 0xff
# CHECK: b{unknown-cc} 4096
0x00 0x00 0x9e 0x00