17 lines · plain
1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=powerpc64le-unknown-linux-gnu \2; RUN: -mcpu=future | FileCheck %s --check-prefix=FUTURE3; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=powerpc64le-unknown-linux-gnu \4; RUN: -mcpu=pwr9 | FileCheck %s --check-prefix=PWR95 6define void @test(i16 %p1, i16 %p2, <4 x i16> %p3, <4 x i16> %p4) {7 %i1 = add i16 %p1, %p28 %v1 = add <4 x i16> %p3, %p49 ret void10 ; FUTURE: cost of 1 {{.*}} add11 ; FUTURE: cost of 1 {{.*}} add12 13 ; PWR9: cost of 1 {{.*}} add14 ; PWR9: cost of 2 {{.*}} add15}16 17