blob: e9b3175e6de30cf9ba986d5d653019d43114536a [file] [log] [blame]
Chad Rosierbe879ea2016-06-03 20:05:49 +00001; RUN: llc -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s
2
3; CHECK-LABEL: @test1
4; CHECK: sbfx {{x[0-9]+}}, x0, #23, #9
5define 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}