xref: /llvm-project/llvm/test/CodeGen/Hexagon/build-attributes.ll (revision 31f4b329c8234fab9afa59494d7f8bdaeaefeaad)
1;; Generate build attributes from llc.
2
3; RUN: llc -mtriple=hexagon-unknown-elf \
4; RUN:  -mattr=+hvxv73,+cabac,+v71,+hvx-ieee-fp,+hvx-length128b %s -o - | FileCheck  %s
5
6;      CHECK: .attribute      4, 71  // Tag_arch
7; CHECK-NEXT: .attribute      5, 73  // Tag_hvx_arch
8; CHECK-NEXT: .attribute      6, 1   // Tag_hvx_ieeefp
9; CHECK-NEXT: .attribute      7, 1   // Tag_hvx_qfloat
10; CHECK-NEXT: .attribute      8, 1   // Tag_zreg
11; CHECK-NEXT: .attribute      10, 1   // Tag_cabac
12
13define i32 @addi(i32 %a) {
14  %1 = add i32 %a, 1
15  ret i32 %1
16}