aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/extendditi2-2.c
blob: dbfa6fb90b6eb24d7de0181c7de58385ed89d667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2" } */

__int128 foo(__int128 a, long long b) {
    a += ((__int128)b) << 70;
    return a;
}

__int128 bar(__int128 a, unsigned long long b) {
    a += ((__int128)b) << 70;
    return a;
}
/* { dg-final { scan-assembler-not "movq" } } */