blob: d6e5a1aad57a7f1eb6c873b46e589e3a27b83e6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
; RUN: llc -O2 -mtriple=bpfel -mattr=+alu32 < %s | FileCheck %s
; RUN: llc -O2 -mtriple=bpfel -mcpu=v3 < %s | FileCheck %s
; RUN: llc -O2 -mtriple=bpfeb -mattr=+alu32 < %s | FileCheck %s
; RUN: llc -O2 -mtriple=bpfeb -mcpu=v3 < %s | FileCheck %s
;
; long zext(unsigned int a)
; {
; long b = a;
; return b;
; }
; Function Attrs: norecurse nounwind
define dso_local i64 @zext(i32 %a) local_unnamed_addr #0 {
entry:
%conv = zext i32 %a to i64
; CHECK-NOT: r[[#]] <<= 32
; CHECK-NOT: r[[#]] >>= 32
ret i64 %conv
}
attributes #0 = { norecurse nounwind }
|