Files
clang-p2996/llvm/test/CodeGen/Hexagon/vector-ext-load.ll
Fangrui Song 2208c97c1b [Hexagon,test] Change llc -march= to -mtriple=
Similar to 806761a762

-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple, leaving a target triple which
may not make sense.

Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize $unknown-apple-darwin as ELF instead
of rejecting it outrightly.
2024-12-15 10:20:22 -08:00

11 lines
320 B
LLVM

; A copy of 2012-06-08-APIntCrash.ll with arch explicitly set to hexagon.
; RUN: llc -mtriple=hexagon < %s
define void @test1(ptr %ptr) {
%1 = load <8 x i32>, ptr %ptr, align 32
%2 = and <8 x i32> %1, <i32 0, i32 0, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 -1>
store <8 x i32> %2, ptr %ptr, align 16
ret void
}