mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-19 02:08:06 +00:00

Summary: Patch by Scott Egerton Reviewers: vkalintiris, dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11675 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246763 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
630 B
ArmAsm
19 lines
630 B
ArmAsm
# 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
|
|
div $25, $11
|
|
# R6: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r6
|
|
|
|
div $25, $0
|
|
# NOT-R6: :[[@LINE-1]]:3: warning: division by zero
|
|
|
|
div $0,$0
|
|
# NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero
|