Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/Hexagon/store-widen-negv.ll @ 128:c347d3398279 default tip
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | 7d135dc70f03 |
children |
line wrap: on
line source
; RUN: llc -march=hexagon < %s | FileCheck %s ; We shouldn't see a 32-bit expansion of -120, just the uint8 value. ; CHECK: #136 define i32 @foo([4 x i8]* %ptr) { entry: %msb = getelementptr inbounds [4 x i8], [4 x i8]* %ptr, i32 0, i32 3 %lsb = getelementptr inbounds [4 x i8], [4 x i8]* %ptr, i32 0, i32 2 store i8 0, i8* %msb store i8 -120, i8* %lsb, align 2 ret i32 0 }