mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-07 04:38:20 +00:00
Another case that shouldn't have sign extends: functions returning short
are known to return properly sign extended values, no need for an explicit extension. llvm-svn: 23197
This commit is contained in:
parent
626c46f8d9
commit
3772098053
@ -10,3 +10,17 @@ int %test2(ushort %X) {
|
||||
%Z = and int %Y, 65535 ;; dead
|
||||
ret int %Z
|
||||
}
|
||||
|
||||
void %test3() {
|
||||
%tmp.0 = call short %foo() ;; no extsh!
|
||||
%tmp.1 = setlt short %tmp.0, 1234
|
||||
br bool %tmp.1, label %then, label %UnifiedReturnBlock
|
||||
|
||||
then:
|
||||
call int %test1(short 0)
|
||||
ret void
|
||||
UnifiedReturnBlock:
|
||||
ret void
|
||||
}
|
||||
|
||||
declare short %foo()
|
||||
|
Loading…
x
Reference in New Issue
Block a user