ext.ll 532 B

123456789101112131415161718192021
  1. ; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx | FileCheck %s
  2. target datalayout = "E-m:e-i64:64-n32:64"
  3. target triple = "powerpc64-unknown-linux-gnu"
  4. define void @exts() {
  5. ; CHECK: cost of 1 {{.*}} sext
  6. %v1 = sext i16 undef to i32
  7. ; CHECK: cost of 1 {{.*}} sext
  8. %v2 = sext <2 x i16> undef to <2 x i32>
  9. ; CHECK: cost of 1 {{.*}} sext
  10. %v3 = sext <4 x i16> undef to <4 x i32>
  11. ; CHECK: cost of 112 {{.*}} sext
  12. %v4 = sext <8 x i16> undef to <8 x i32>
  13. ret void
  14. }