mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
c72b18cdc8
the shift type was needed one place, the shift count type another. The transform in 123555 had the same problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122366 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
283 B
LLVM
11 lines
283 B
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
|
|
; Formerly there were two shifts.
|
|
|
|
define i64 @baz(i32 %A) nounwind {
|
|
; CHECK: shlq $49, %rax
|
|
%tmp1 = shl i32 %A, 17
|
|
%tmp2 = zext i32 %tmp1 to i64
|
|
%tmp3 = shl i64 %tmp2, 32
|
|
ret i64 %tmp3
|
|
}
|