| ... | ... | @@ -3377,32 +3377,40 @@ pub fn cMaxIntAlignment(target: *const Target) u16 { |
| 3377 | 3377 | |
| 3378 | 3378 | .msp430 => 2, |
| 3379 | 3379 | |
| 3380 | | .xcore, |
| 3380 | .arc, |
| 3381 | .csky, |
| 3382 | .kalimba, |
| 3383 | .or1k, |
| 3381 | 3384 | .propeller, |
| 3385 | .xcore, |
| 3382 | 3386 | => 4, |
| 3383 | 3387 | |
| 3384 | | .amdgcn, |
| 3385 | 3388 | .arm, |
| 3386 | 3389 | .armeb, |
| 3387 | | .thumb, |
| 3388 | | .thumbeb, |
| 3389 | | .lanai, |
| 3390 | 3390 | .hexagon, |
| 3391 | .lanai, |
| 3392 | .loongarch32, |
| 3393 | .m68k, |
| 3391 | 3394 | .mips, |
| 3392 | 3395 | .mipsel, |
| 3393 | | .or1k, |
| 3394 | 3396 | .powerpc, |
| 3395 | 3397 | .powerpcle, |
| 3396 | 3398 | .riscv32, |
| 3397 | 3399 | .riscv32be, |
| 3398 | 3400 | .s390x, |
| 3401 | .sparc, |
| 3402 | .thumb, |
| 3403 | .thumbeb, |
| 3404 | .x86, |
| 3405 | .xtensa, |
| 3399 | 3406 | => 8, |
| 3400 | 3407 | |
| 3401 | | // Even LLVMABIAlignmentOfType(i128) agrees on these targets. |
| 3402 | 3408 | .aarch64, |
| 3403 | 3409 | .aarch64_be, |
| 3410 | .amdgcn, |
| 3404 | 3411 | .bpfel, |
| 3405 | 3412 | .bpfeb, |
| 3413 | .loongarch64, |
| 3406 | 3414 | .mips64, |
| 3407 | 3415 | .mips64el, |
| 3408 | 3416 | .nvptx, |
| ... | ... | @@ -3411,26 +3419,13 @@ pub fn cMaxIntAlignment(target: *const Target) u16 { |
| 3411 | 3419 | .powerpc64le, |
| 3412 | 3420 | .riscv64, |
| 3413 | 3421 | .riscv64be, |
| 3414 | | .sparc, |
| 3415 | 3422 | .sparc64, |
| 3416 | | .wasm32, |
| 3417 | | .wasm64, |
| 3418 | | .x86, |
| 3419 | | .x86_64, |
| 3420 | | => 16, |
| 3421 | | |
| 3422 | | // Below this comment are unverified but based on the fact that C requires |
| 3423 | | // int128_t to be 16 bytes aligned, it's a safe default. |
| 3424 | | .arc, |
| 3425 | | .csky, |
| 3426 | | .kalimba, |
| 3427 | | .loongarch32, |
| 3428 | | .loongarch64, |
| 3429 | | .m68k, |
| 3430 | 3423 | .spirv32, |
| 3431 | 3424 | .spirv64, |
| 3432 | 3425 | .ve, |
| 3433 | | .xtensa, |
| 3426 | .wasm32, |
| 3427 | .wasm64, |
| 3428 | .x86_64, |
| 3434 | 3429 | => 16, |
| 3435 | 3430 | }; |
| 3436 | 3431 | } |