1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
5 ; OSS Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22357
6 define void @fuzz22357(i128 %a0) {
7 ; X86-LABEL: fuzz22357:
9 ; X86-NEXT: movb $0, (%eax)
12 ; X64-LABEL: fuzz22357:
14 ; X64-NEXT: movb $0, (%rax)
16 %1 = add i128 %a0, 170141183460469231731687303715884105727
17 %2 = add nuw nsw i128 %1, 22222
18 %3 = getelementptr i8, ptr undef, i128 %2
19 store i8 0, ptr %3, align 1
23 ; OSS Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22723
24 define void @fuzz22723(i128 %a0) {
25 ; X86-LABEL: fuzz22723:
29 ; X64-LABEL: fuzz22723:
32 %1 = add i128 %a0, 170141183460469231731687303715884105727
33 %2 = getelementptr ptr, ptr undef, i128 %1
34 store ptr undef, ptr %2, align 8