1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/test/MC/Mips/macro-divu-bad.s

19 lines
633 B
ArmAsm
Raw Normal View History

# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 2>&1 | \
# RUN: FileCheck %s --check-prefix=R6
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 2>&1 | \
# RUN: FileCheck %s --check-prefix=R6
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-R6
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-R6
.text
divu $25, $11
# R6: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r6
divu $25, $0
# NOT-R6: :[[@LINE-1]]:3: warning: division by zero
divu $0,$0
# NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero