Chad Rosier | be879ea | 2016-06-03 20:05:49 +0000 | [diff] [blame^] | 1 | ; RUN: llc -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s |
2 | |||||
3 | ; CHECK-LABEL: @test1 | ||||
4 | ; CHECK: sbfx {{x[0-9]+}}, x0, #23, #9 | ||||
5 | define i64 @test1(i32 %a) { | ||||
6 | %tmp = ashr i32 %a, 23 | ||||
7 | %ext = sext i32 %tmp to i64 | ||||
8 | %res = add i64 %ext, 1 | ||||
9 | ret i64 %res | ||||
10 | } |