2017-08-26 03:25:03 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
|
2006-02-25 18:16:10 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
declare i32 @foo()
|
|
|
|
|
|
|
|
define i32 @test() {
|
2017-08-26 03:25:03 +08:00
|
|
|
; CHECK-LABEL: test:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2017-08-26 03:25:03 +08:00
|
|
|
; CHECK-NEXT: calll foo
|
|
|
|
; CHECK-NEXT: leal (%eax,%eax,8), %eax
|
|
|
|
; CHECK-NEXT: retl
|
2013-01-31 08:44:12 +08:00
|
|
|
%tmp.0 = tail call i32 @foo( )
|
|
|
|
%tmp.1 = mul i32 %tmp.0, 9
|
|
|
|
ret i32 %tmp.1
|
2006-02-25 18:16:10 +08:00
|
|
|
}
|
2008-02-21 15:42:26 +08:00
|
|
|
|