view test/CodeGen/X86/x86-64-extend-shift.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; Formerly there were two shifts.

define i64 @baz(i32 %A) nounwind {
; CHECK:  shlq  $49, %r
        %tmp1 = shl i32 %A, 17
        %tmp2 = zext i32 %tmp1 to i64
        %tmp3 = shl i64 %tmp2, 32
        ret i64 %tmp3
}