Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/Hexagon/opt-fabs.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 7d135dc70f03 |
children |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
1 ; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv5 -hexagon-bit=0 < %s | FileCheck %s | 1 ; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv5 -hexagon-bit=0 < %s | FileCheck %s |
2 ; Optimize fabsf to clrbit in V5. | 2 ; Optimize fabsf to clrbit in V5. |
3 | 3 |
4 ; CHECK: r{{[0-9]+}} = clrbit(r{{[0-9]+}}, #31) | 4 ; CHECK: r{{[0-9]+}} = clrbit(r{{[0-9]+}},#31) |
5 | 5 |
6 define float @my_fabsf(float %x) nounwind { | 6 define float @my_fabsf(float %x) nounwind { |
7 entry: | 7 entry: |
8 %x.addr = alloca float, align 4 | 8 %x.addr = alloca float, align 4 |
9 store float %x, float* %x.addr, align 4 | 9 store float %x, float* %x.addr, align 4 |