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