File: mov-zero-to-xor.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-6~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,418,812 kB
  • sloc: cpp: 5,290,827; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,900; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,892; xml: 953; cs: 573; fortran: 539
file content (32 lines) | stat: -rw-r--r-- 1,265 bytes parent folder | download | duplicates (19)
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
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s

declare dso_local void @foo(i64, i64, i64, i64, i64, i64)
declare dso_local void @bar(i32, i32, i32, i32, i32)

define void @pr47024() {
; CHECK-LABEL: pr47024:
; CHECK:       # %bb.0:
; CHECK-NEXT:    movabsq $21542142465, %rdi # imm = 0x504030201
; CHECK-NEXT:    movabsq $723401749922909195, %rdx # imm = 0xA0A0A0F0E0D0C0B
; CHECK-NEXT:    movabsq $723401728380766730, %rcx # imm = 0xA0A0A0A0A0A0A0A
; CHECK-NEXT:    movabsq $1446803478303675925, %r8 # imm = 0x1414141918171615
; CHECK-NEXT:    movabsq $798285110420182026, %r9 # imm = 0xB1414141414140A
; CHECK-NEXT:    xorl %esi, %esi
; CHECK-NEXT:    jmp foo # TAILCALL
  tail call void @foo(i64 21542142465, i64 0, i64 723401749922909195, i64 723401728380766730, i64 1446803478303675925, i64 798285110420182026)
  ret void
}

define void @pr46315() {
; CHECK-LABEL: pr46315:
; CHECK:       # %bb.0:
; CHECK-NEXT:    xorl %edi, %edi
; CHECK-NEXT:    xorl %esi, %esi
; CHECK-NEXT:    movl $2, %edx
; CHECK-NEXT:    movl $3, %ecx
; CHECK-NEXT:    movl $1, %r8d
; CHECK-NEXT:    jmp bar # TAILCALL
  tail call void @bar(i32 0, i32 0, i32 2, i32 3, i32 1)
  ret void
}