llvm-for-llvmta/test/CodeGen/BPF/sdiv_error.ll

10 lines
226 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not --crash llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: Unsupport signed division
; Function Attrs: norecurse nounwind readnone
define i32 @test(i32 %len) #0 {
%1 = srem i32 %len, 15
ret i32 %1
}