brintos

brintos / llvm-project-archived public Read only

0
0
Text · 685 B · 3b794a9 Raw
25 lines · plain
1; RUN: llc -mtriple=bpfel -mattr=+alu32 < %s | FileCheck %s2; Source:3;   unsigned test(unsigned long x, unsigned long y) {4;     return x & y;5;   }6; Compilation flag:7;   clang -target bpf -O2 -emit-llvm -S test.c8 9; Function Attrs: norecurse nounwind readnone10define dso_local i32 @test(i64 %x, i64 %y) local_unnamed_addr {11entry:12  %and = and i64 %y, %x13  %conv = trunc i64 %and to i3214  ret i32 %conv15}16 17; CHECK: r[[REG1:[0-9]+]] = r{{[0-9]+}}18; CHECK: w[[REG1]] &= w{{[0-9]+}}19 20!llvm.module.flags = !{!0}21!llvm.ident = !{!1}22 23!0 = !{i32 1, !"wchar_size", i32 4}24!1 = !{!"clang version 11.0.0 (https://github.com/llvm/llvm-project.git b3ab5b2e7ffe9964ddf75a92fd7a444fe5aaa426)"}25