File: rdf-cover-use.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (38 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
; RUN: llc -mtriple=hexagon -verify-machineinstrs < %s | FileCheck %s

; Check for sane output.
; CHECK: vmpyweh

target triple = "hexagon"

declare i32 @llvm.hexagon.S2.clb(i32) #0
declare i32 @llvm.hexagon.S2.asl.r.r(i32, i32) #0
declare i32 @llvm.hexagon.S2.vrndpackwh(i64) #0
declare i64 @llvm.hexagon.M2.mmpyl.s1(i64, i64) #0

define i64 @fred(i32 %a0, i32 %a1) local_unnamed_addr #1 {
b2:
  br i1 undef, label %b15, label %b3

b3:                                               ; preds = %b2
  %v4 = tail call i32 @llvm.hexagon.S2.clb(i32 %a1) #0
  %v5 = add nsw i32 %v4, -32
  %v6 = zext i32 %v5 to i64
  %v7 = shl nuw i64 %v6, 32
  %v8 = or i64 %v7, 0
  %v9 = tail call i32 @llvm.hexagon.S2.asl.r.r(i32 %a0, i32 0)
  %v10 = tail call i32 @llvm.hexagon.S2.vrndpackwh(i64 %v8)
  %v11 = sext i32 %v9 to i64
  %v12 = sext i32 %v10 to i64
  %v13 = tail call i64 @llvm.hexagon.M2.mmpyl.s1(i64 %v11, i64 %v12)
  %v14 = and i64 %v13, 4294967295
  br label %b15

b15:                                              ; preds = %b3, %b2
  %v16 = phi i64 [ %v14, %b3 ], [ 0, %b2 ]
  %v17 = or i64 0, %v16
  ret i64 %v17
}

attributes #0 = { nounwind readnone }
attributes #1 = { nounwind "target-cpu"="hexagonv55" }