brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 304e703 Raw
35 lines · plain
1; RUN: opt --mtriple=loongarch64 -mattr=+d -S --passes='require<profile-summary>,function(codegenprepare)' %s | FileCheck %s2 3; Check that we have deterministic output4define void @test(ptr %sp, ptr %t, i32 %n) {5; CHECK-LABEL: @test(6; CHECK-NEXT:  entry:7; CHECK-NEXT:    %splitgep1 = getelementptr i8, ptr %t, i64 800008; CHECK-NEXT:    %s = load ptr, ptr %sp9; CHECK-NEXT:    %splitgep = getelementptr i8, ptr %s, i64 8000010entry:11  %s = load ptr, ptr %sp12  br label %while_cond13 14while_cond:15  %phi = phi i32 [ 0, %entry ], [ %i, %while_body ]16  %gep0 = getelementptr [65536 x i32], ptr %s, i64 0, i64 2000017  %gep1 = getelementptr [65536 x i32], ptr %s, i64 0, i64 2000118  %gep2 = getelementptr [65536 x i32], ptr %t, i64 0, i64 2000019  %gep3 = getelementptr [65536 x i32], ptr %t, i64 0, i64 2000120  %cmp = icmp slt i32 %phi, %n21  br i1 %cmp, label %while_body, label %while_end22 23while_body:24  %i = add i32 %phi, 125  store i32 %i, ptr %gep026  store i32 %phi, ptr %gep127  store i32 %i, ptr %gep228  store i32 %phi, ptr %gep329  br label %while_cond30 31while_end:32  ret void33}34 35