mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf36d1c6d1
commit
ab1a525163
@ -1,10 +1,7 @@
|
|||||||
; This test makes sure that mul instructions are properly eliminated.
|
; This test makes sure that mul instructions are properly eliminated.
|
||||||
;
|
;
|
||||||
|
|
||||||
; RUN: if as < %s | opt -instcombine | dis | grep mul
|
; RUN: as < %s | opt -instcombine | dis | grep-not mul
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -35,7 +32,7 @@ int %test5(int %A) {
|
|||||||
|
|
||||||
ubyte %test6(ubyte %A) {
|
ubyte %test6(ubyte %A) {
|
||||||
%B = mul ubyte %A, 8
|
%B = mul ubyte %A, 8
|
||||||
%C = mul ubyte %B, 13
|
%C = mul ubyte %B, 8
|
||||||
ret ubyte %C
|
ret ubyte %C
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user