1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/ELF/div-by-zero.s
Simon Pilgrim a7b225c26c [MC] Don't crash on modulo by zero (PR35650)
Extension to D12776, handle modulo by zero in the same way we handle divide by zero.

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

llvm-svn: 325810
2018-02-22 18:06:48 +00:00

10 lines
268 B
ArmAsm

// Check that llvm-mc doesn't crash on division by zero.
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t
// RUN: FileCheck -input-file %t %s
// CHECK: expected relocatable expression
.int 1/0
// CHECK: expected relocatable expression
.int 2%0