You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
This commit is contained in:
parent
37fbf886a3
commit
e19d552987
21
external/llvm/test/CodeGen/SPARC/multiple-div.ll
vendored
Normal file
21
external/llvm/test/CodeGen/SPARC/multiple-div.ll
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
; RUN: llc < %s -march=sparc | FileCheck %s
|
||||
; RUN: llc -O0 < %s -march=sparc | FileCheck %s
|
||||
|
||||
;; llc -O0 used to try to spill Y to the stack, which isn't possible,
|
||||
;; and then crashed. Additionally, in -O1, it would omit the second
|
||||
;; apparently-redundant wr to %y, which is not actually redundant
|
||||
;; because the spec says to treat %y as potentially-written by udiv.
|
||||
|
||||
; CHECK-LABEL: two_divides:
|
||||
; CHECK: wr %g0, %g0, %y
|
||||
; CHECK: udiv
|
||||
; CHECK: wr %g0, %g0, %y
|
||||
; CHECK: udiv
|
||||
; CHECK: add
|
||||
|
||||
define i32 @two_divides(i32 %a, i32 %b) {
|
||||
%r = udiv i32 %a, %b
|
||||
%r2 = udiv i32 %b, %a
|
||||
%r3 = add i32 %r, %r2
|
||||
ret i32 %r3
|
||||
}
|
Reference in New Issue
Block a user