source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/CostModel/PowerPC/insert_extract.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 568 bytes
Line 
1; RUN: opt < %s  -cost-model -analyze -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s
2target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3target triple = "powerpc64-unknown-linux-gnu"
4
5define i32 @insert(i32 %arg) {
6  ; CHECK: cost of 10 {{.*}} insertelement
7  %x = insertelement <4 x i32> undef, i32 %arg, i32 0
8  ret i32 undef
9}
10
11define i32 @extract(<4 x i32> %arg) {
12  ; CHECK: cost of 3 {{.*}} extractelement
13  %x = extractelement <4 x i32> %arg, i32 0
14  ret i32 %x
15}
16
Note: See TracBrowser for help on using the repository browser.